eth/tracers: fix test

This commit is contained in:
Gary Rong 2025-03-20 20:10:43 +08:00
parent 43883c6456
commit 66ea437fec

View file

@ -960,7 +960,7 @@ func TestTracingWithOverrides(t *testing.T) {
}, },
}, },
}, },
want: `{"gas":21167,"failed":false,"returnValue":"0000000000000000000000000000000000000000000000000000000000000002"}`, want: `{"gas":21167,"failed":false,"returnValue":"0x0000000000000000000000000000000000000000000000000000000000000002"}`,
}, },
{ // Call to ECREC Precompiled on a different address, expect the original behaviour of ECREC precompile { // Call to ECREC Precompiled on a different address, expect the original behaviour of ECREC precompile
blockNumber: rpc.LatestBlockNumber, blockNumber: rpc.LatestBlockNumber,
@ -981,7 +981,7 @@ func TestTracingWithOverrides(t *testing.T) {
}, },
}, },
}, },
want: `{"gas":25664,"failed":false,"returnValue":"000000000000000000000000c6e93f4c1920eaeaa1e699f76a7a8c18e3056074"}`, want: `{"gas":25664,"failed":false,"returnValue":"0x000000000000000000000000c6e93f4c1920eaeaa1e699f76a7a8c18e3056074"}`,
}, },
} }
for i, tc := range testSuite { for i, tc := range testSuite {