mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
core/types: inline signtx
This commit is contained in:
parent
b893ee3fd6
commit
bec34c5510
1 changed files with 1 additions and 2 deletions
|
|
@ -107,8 +107,7 @@ func SignTx(tx *Transaction, s Signer, prv *ecdsa.PrivateKey) (*Transaction, err
|
||||||
|
|
||||||
// SignNewTx creates a transaction and signs it.
|
// SignNewTx creates a transaction and signs it.
|
||||||
func SignNewTx(prv *ecdsa.PrivateKey, s Signer, txdata TxData) (*Transaction, error) {
|
func SignNewTx(prv *ecdsa.PrivateKey, s Signer, txdata TxData) (*Transaction, error) {
|
||||||
tx := NewTx(txdata)
|
return SignTx(NewTx(txdata), s, prv)
|
||||||
return SignTx(tx, s, prv)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// MustSignNewTx creates a transaction and signs it.
|
// MustSignNewTx creates a transaction and signs it.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue