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()
|
gas = tx.Gas()
|
||||||
nonce = tx.Nonce()
|
nonce = tx.Nonce()
|
||||||
input = tx.Data()
|
input = tx.Data()
|
||||||
|
accessList = tx.AccessList()
|
||||||
)
|
)
|
||||||
return TransactionArgs{
|
return TransactionArgs{
|
||||||
From: &from,
|
From: &from,
|
||||||
|
|
@ -1286,8 +1287,7 @@ func argsFromTransaction(tx *types.Transaction, from common.Address) Transaction
|
||||||
Nonce: (*hexutil.Uint64)(&nonce),
|
Nonce: (*hexutil.Uint64)(&nonce),
|
||||||
Input: (*hexutil.Bytes)(&input),
|
Input: (*hexutil.Bytes)(&input),
|
||||||
ChainID: (*hexutil.Big)(tx.ChainId()),
|
ChainID: (*hexutil.Big)(tx.ChainId()),
|
||||||
// TODO: impl accessList conversion
|
AccessList: &accessList,
|
||||||
//AccessList: tx.AccessList(),
|
|
||||||
BlobFeeCap: (*hexutil.Big)(tx.BlobGasFeeCap()),
|
BlobFeeCap: (*hexutil.Big)(tx.BlobGasFeeCap()),
|
||||||
BlobHashes: tx.BlobHashes(),
|
BlobHashes: tx.BlobHashes(),
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue