mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
minor
This commit is contained in:
parent
bde2f0f705
commit
0af27f4892
1 changed files with 6 additions and 7 deletions
|
|
@ -1272,14 +1272,13 @@ func TestFillBlobTransaction(t *testing.T) {
|
||||||
|
|
||||||
func argsFromTransaction(tx *types.Transaction, from common.Address) TransactionArgs {
|
func argsFromTransaction(tx *types.Transaction, from common.Address) TransactionArgs {
|
||||||
var (
|
var (
|
||||||
gas = tx.Gas()
|
gas = tx.Gas()
|
||||||
nonce = tx.Nonce()
|
nonce = tx.Nonce()
|
||||||
input = tx.Data()
|
input = tx.Data()
|
||||||
accessList = (*types.AccessList)(nil)
|
accessList *types.AccessList
|
||||||
txAccessList = tx.AccessList()
|
|
||||||
)
|
)
|
||||||
if txAccessList != nil {
|
if acl := tx.AccessList(); acl != nil {
|
||||||
accessList = &txAccessList
|
accessList = &acl
|
||||||
}
|
}
|
||||||
return TransactionArgs{
|
return TransactionArgs{
|
||||||
From: &from,
|
From: &from,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue