Skip to content

Commit

Permalink
Problem: trace tx unit test should pass (#529)
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang authored Sep 24, 2024
1 parent e55b15c commit 5ed832f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions x/evm/keeper/grpc_query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,8 @@ func (suite *GRPCServerTestSuiteSuite) TestTraceTx() {
}
predecessors = []*types.MsgEthereumTx{}
},
expPass: false,
expPass: true,
traceResponse: "{\"gas\":34828,\"failed\":false,\"returnValue\":\"0000000000000000000000000000000000000000000000000000000000000001\",\"structLogs\":[{\"pc\":0,\"op\":\"PUSH1\",\"gas\":",
enableFeemarket: true,
},
{
Expand All @@ -931,7 +932,8 @@ func (suite *GRPCServerTestSuiteSuite) TestTraceTx() {
}
predecessors = []*types.MsgEthereumTx{}
},
expPass: false,
expPass: true,
traceResponse: "[]",
enableFeemarket: true,
},
{
Expand Down Expand Up @@ -1044,6 +1046,8 @@ func (suite *GRPCServerTestSuiteSuite) TestTraceTx() {
suite.SetupTest()
// Deploy contract
contractAddr := suite.deployTestContract(suite.Address)
// set some balance to handle fees
suite.Require().NoError(suite.App.EvmKeeper.SetBalance(suite.Ctx, suite.Address, big.NewInt(1000000000000000000)))
suite.Commit()
// Generate token transfer transaction
txMsg = suite.transferERC20Token(suite.T(), contractAddr, suite.Address, common.HexToAddress("0x378c50D9264C63F3F92B806d4ee56E9D86FfB3Ec"), sdkmath.NewIntWithDecimal(1, 18).BigInt())
Expand Down

0 comments on commit 5ed832f

Please sign in to comment.