Skip to content

Commit

Permalink
eth/tracers: ethapi.TransactionArgs was not merged
Browse files Browse the repository at this point in the history
Signed-off-by: wenbiao <wenbiao.zheng@ambergroup.io>
  • Loading branch information
rigsec committed Nov 24, 2021
1 parent e43897f commit 5fceae8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions eth/tracers/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ func TestTracingWithOverrides(t *testing.T) {
// Transfer from account[0] to account[1]
// value: 1000 wei
// fee: 0 wei
tx, _ := types.SignTx(types.NewTransaction(uint64(i), accounts[1].addr, big.NewInt(1000), params.TxGas, b.BaseFee(), nil), signer, accounts[0].key)
tx, _ := types.SignTx(types.NewTransaction(uint64(i), accounts[1].addr, big.NewInt(1000), params.TxGas, big.NewInt(0), nil), signer, accounts[0].key)
b.AddTx(tx)
}))
randomAccounts := newAccounts(3)
Expand All @@ -442,15 +442,15 @@ func TestTracingWithOverrides(t *testing.T) {
}
var testSuite = []struct {
blockNumber rpc.BlockNumber
call ethapi.TransactionArgs
call ethapi.CallArgs
config *TraceCallConfig
expectErr error
want string
}{
// Call which can only succeed if state is state overridden
{
blockNumber: rpc.PendingBlockNumber,
call: ethapi.TransactionArgs{
call: ethapi.CallArgs{
From: &randomAccounts[0].addr,
To: &randomAccounts[1].addr,
Value: (*hexutil.Big)(big.NewInt(1000)),
Expand All @@ -465,7 +465,7 @@ func TestTracingWithOverrides(t *testing.T) {
// Invalid call without state overriding
{
blockNumber: rpc.PendingBlockNumber,
call: ethapi.TransactionArgs{
call: ethapi.CallArgs{
From: &randomAccounts[0].addr,
To: &randomAccounts[1].addr,
Value: (*hexutil.Big)(big.NewInt(1000)),
Expand All @@ -491,7 +491,7 @@ func TestTracingWithOverrides(t *testing.T) {
// }
{
blockNumber: rpc.PendingBlockNumber,
call: ethapi.TransactionArgs{
call: ethapi.CallArgs{
From: &randomAccounts[0].addr,
To: &randomAccounts[2].addr,
Data: newRPCBytes(common.Hex2Bytes("8381f58a")), // call number()
Expand Down

0 comments on commit 5fceae8

Please sign in to comment.