Skip to content

Commit

Permalink
Fix jsonrpc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lmoe committed Oct 19, 2024
1 parent 6c72169 commit 3ea7745
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/evm/jsonrpc/jsonrpctest/jsonrpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ func TestRPCTraceTx(t *testing.T) {
require.Equal(t, "0x7b", trace1.Value.String())
expectedInput, err := contractABI.Pack("sendTo", common.Address{0x1}, big.NewInt(1))
require.NoError(t, err)
require.Equal(t, expectedInput, trace1.Input)
require.Equal(t, expectedInput, []byte(trace1.Input))
require.Empty(t, trace1.Error)
require.Empty(t, trace1.RevertReason)
require.Equal(t, "0x0", trace1.Gas.String())
Expand Down Expand Up @@ -725,7 +725,7 @@ func TestRPCTraceBlock(t *testing.T) {
require.Equal(t, "0x7b", trace1.Value.String())
expectedInput, err := contractABI.Pack("sendTo", common.Address{0x1}, big.NewInt(2))
require.NoError(t, err)
require.Equal(t, expectedInput, trace1.Input)
require.Equal(t, expectedInput, []byte(trace1.Input))
require.Empty(t, trace1.Error)
require.Empty(t, trace1.RevertReason)
require.Equal(t, "0x0", trace1.Gas.String())
Expand All @@ -747,7 +747,7 @@ func TestRPCTraceBlock(t *testing.T) {
require.Equal(t, "0x141", trace2.Value.String())
expectedInput, err = contractABI.Pack("sendTo", common.Address{0x2}, big.NewInt(3))
require.NoError(t, err)
require.Equal(t, expectedInput, trace2.Input)
require.Equal(t, expectedInput, []byte(trace2.Input))
require.Empty(t, trace2.Error)
require.Empty(t, trace2.RevertReason)
require.Equal(t, "0x0", trace2.Gas.String())
Expand Down Expand Up @@ -807,7 +807,7 @@ func TestRPCBlockReceipt(t *testing.T) {
context.Background(),
&resceipts,
"eth_getBlockReceipts",
env.BlockNumber())
hexutil.EncodeUint64(env.BlockNumber()))
require.NoError(t, err)

require.Len(t, resceipts, 2)
Expand Down

0 comments on commit 3ea7745

Please sign in to comment.