rpc: configure gas cap (#457)

* rpc: configure gas cap

* c++

* rm old const

* docs
This commit is contained in:
Federico Kunze Küllmer
2021-08-18 14:11:51 +00:00
committed by GitHub
parent 1b95d06c92
commit 83c838330f
14 changed files with 7104 additions and 7086 deletions
+2 -2
View File
@@ -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)
@@ -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)