Update api_test.go

This commit is contained in:
Gengar 2025-05-03 01:19:29 +03:00 committed by GitHub
parent a23b493e18
commit b564c5e71f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -833,7 +833,6 @@ func TestTracingWithOverrides(t *testing.T) {
}, },
}, },
}, },
//want: `{"gas":46900,"failed":false,"returnValue":"0000000000000000000000000000000000000000000000000000000000000539"}`,
want: `{"gas":44100,"failed":false,"returnValue":"0x0000000000000000000000000000000000000000000000000000000000000001"}`, want: `{"gas":44100,"failed":false,"returnValue":"0x0000000000000000000000000000000000000000000000000000000000000001"}`,
}, },
{ // No state override { // No state override
@ -858,7 +857,6 @@ func TestTracingWithOverrides(t *testing.T) {
}, },
}, },
}, },
want: `{"gas":25288,"failed":false,"returnValue":"0000000000000000000000000000000000000000000000000000000000000011"}`,
want: `{"gas":25288,"failed":false,"returnValue":"0x0000000000000000000000000000000000000000000000000000000000000077"}`, want: `{"gas":25288,"failed":false,"returnValue":"0x0000000000000000000000000000000000000000000000000000000000000077"}`,
}, },
{ // Full state override { // Full state override
@ -1442,7 +1440,7 @@ func TestTraceBadBlock(t *testing.T) {
// Trace existing bad block // Trace existing bad block
{ {
blockHash: badBlockHash, blockHash: badBlockHash,
wantResult: fmt.Sprintf(`[{"txHash":"%v","result":{"gas":21000,"failed":false,"returnValue":"","structLogs":[]}}]`, badTxHash.Hex()), wantResult: fmt.Sprintf(`[{"txHash":"%v","result":{"gas":21000,"failed":false,"returnValue":"0x","structLogs":[]}}]`, badTxHash.Hex()),
}, },
} }