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 {
|
||||
var (
|
||||
gas = tx.Gas()
|
||||
nonce = tx.Nonce()
|
||||
input = tx.Data()
|
||||
accessList = (*types.AccessList)(nil)
|
||||
txAccessList = tx.AccessList()
|
||||
gas = tx.Gas()
|
||||
nonce = tx.Nonce()
|
||||
input = tx.Data()
|
||||
accessList *types.AccessList
|
||||
)
|
||||
if txAccessList != nil {
|
||||
accessList = &txAccessList
|
||||
if acl := tx.AccessList(); acl != nil {
|
||||
accessList = &acl
|
||||
}
|
||||
return TransactionArgs{
|
||||
From: &from,
|
||||
|
|
|
|||
Loading…
Reference in a new issue