Skip to content

Commit 283028b

Browse files
committed
fix test
1 parent 597096a commit 283028b

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

x/evm/keeper/grpc_query_test.go

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,6 @@ func (suite *KeeperTestSuite) TestTraceTx() {
963963
Msg: txMsg,
964964
TraceConfig: traceConfig,
965965
Predecessors: predecessors,
966-
ChainId: chainID,
967966
}
968967

969968
if chainID != nil {
@@ -987,8 +986,8 @@ func (suite *KeeperTestSuite) TestTraceTx() {
987986
} else {
988987
suite.Require().Error(err)
989988
}
990-
// Reset for next test case
991-
chainID = nil
989+
// Reset for next test case
990+
chainID = nil
992991
})
993992
}
994993

@@ -1142,12 +1141,11 @@ func (suite *KeeperTestSuite) TestTraceBlock() {
11421141
traceReq := types.QueryTraceBlockRequest{
11431142
Txs: txs,
11441143
TraceConfig: traceConfig,
1145-
ChainId: chainID,
11461144
}
11471145

1148-
if chainID != nil {
1149-
traceReq.ChainId = chainID.Int64()
1150-
}
1146+
if chainID != nil {
1147+
traceReq.ChainId = chainID.Int64()
1148+
}
11511149

11521150
res, err := suite.queryClient.TraceBlock(sdk.WrapSDKContext(suite.ctx), &traceReq)
11531151

@@ -1162,8 +1160,8 @@ func (suite *KeeperTestSuite) TestTraceBlock() {
11621160
} else {
11631161
suite.Require().Error(err)
11641162
}
1165-
// Reset for next case
1166-
chainID = nil
1163+
// Reset for next case
1164+
chainID = nil
11671165
})
11681166
}
11691167

@@ -1180,7 +1178,7 @@ func (suite *KeeperTestSuite) TestNonceInQuery() {
11801178

11811179
// do an EthCall/EstimateGas with nonce 0
11821180
ctorArgs, err := types.ERC20Contract.ABI.Pack("", address, supply)
1183-
suite.Require().NoError(err)
1181+
suite.Require().NoError(err)
11841182

11851183
data := append(types.ERC20Contract.Bin, ctorArgs...)
11861184
args, err := json.Marshal(&types.TransactionArgs{

0 commit comments

Comments
 (0)