Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

rpc: configure gas cap #457

Merged
merged 5 commits into from
Aug 18, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test
  • Loading branch information
fedekunze committed Aug 18, 2021
commit 5793bb77717fd6a274d9ea123efab835ba3c56b2
4 changes: 2 additions & 2 deletions x/evm/keeper/grpc_query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ func (suite *KeeperTestSuite) deployTestContract(owner common.Address, supply *b

res, err := suite.queryClient.EstimateGas(ctx, &types.EthCallRequest{
Args: args,
GasCap: uint64(ethermint.DefaultRPCGasLimit),
GasCap: 25_000_000,
})
suite.Require().NoError(err)

Expand Down Expand Up @@ -805,7 +805,7 @@ func (suite *KeeperTestSuite) TestEstimateGas() {
for _, tc := range testCases {
suite.Run(fmt.Sprintf("Case %s", tc.msg), func() {
suite.SetupTest()
gasCap = ethermint.DefaultRPCGasLimit
gasCap = 25_000_000
tc.malleate()

args, err := json.Marshal(&args)
Expand Down