The Ask
The TestTraceTx cases pass >90% of the time but sometimes fail without code
changes due to some inconsistency in gas used between runs. We should investigate
how this is possible and correct it.
Problem
This is what the failure looks when the test doesn't run.
grpc_query_test.go:916:
Error Trace: /home/runner/work/nibiru/nibiru/x/evm/evmstate/grpc_query_test.go:916
/home/runner/go/pkg/mod/github.com/stretchr/testify@v1.9.0/suite/suite.go:115
Error: Not equal:
expected: "0xc832"
actual : "0xc826"
Diff:
--- Expected
+++ Actual
@@ -1 +1 @@
-0xc832
+0xc826
Test: TestEvmState/TestTraceTx/happy:_trace_erc-20_transfer_tx
Messages: mismatch in trace result { key: gas, testCase: "happy: trace erc-20 transfer tx" }
grpc_query_test.go:916:
Error Trace: /home/runner/work/nibiru/nibiru/x/evm/evmstate/grpc_query_test.go:916
/home/runner/go/pkg/mod/github.com/stretchr/testify@v1.9.0/suite/suite.go:115
Error: Not equal:
expected: "0x8566"
actual : "0x855a"
Diff:
--- Expected
+++ Actual
@@ -1 +1 @@
-0x8566
+0x855a
Test: TestEvmState/TestTraceTx/happy:_trace_erc-20_transfer_tx
Messages: mismatch in trace result { key: gasUsed, testCase: "happy: trace erc-20 transfer tx" }
FAIL
FAIL github.com/NibiruChain/nibiru/v2/x/evm/evmstate 9.850s
The Ask
The
TestTraceTxcases pass >90% of the time but sometimes fail without codechanges due to some inconsistency in gas used between runs. We should investigate
how this is possible and correct it.
Problem
This is what the failure looks when the test doesn't run.