mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
internal/ethapi: impl accessList conversion in tests to remove TODO
This commit is contained in:
parent
93c541ad56
commit
2a505a3e45
1 changed files with 7 additions and 7 deletions
|
|
@ -1275,6 +1275,7 @@ func argsFromTransaction(tx *types.Transaction, from common.Address) Transaction
|
|||
gas = tx.Gas()
|
||||
nonce = tx.Nonce()
|
||||
input = tx.Data()
|
||||
accessList = tx.AccessList()
|
||||
)
|
||||
return TransactionArgs{
|
||||
From: &from,
|
||||
|
|
@ -1286,8 +1287,7 @@ func argsFromTransaction(tx *types.Transaction, from common.Address) Transaction
|
|||
Nonce: (*hexutil.Uint64)(&nonce),
|
||||
Input: (*hexutil.Bytes)(&input),
|
||||
ChainID: (*hexutil.Big)(tx.ChainId()),
|
||||
// TODO: impl accessList conversion
|
||||
//AccessList: tx.AccessList(),
|
||||
AccessList: &accessList,
|
||||
BlobFeeCap: (*hexutil.Big)(tx.BlobGasFeeCap()),
|
||||
BlobHashes: tx.BlobHashes(),
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue