From ca956cde2364690ecb693e09779c603c39c930f2 Mon Sep 17 00:00:00 2001 From: sh-cha Date: Tue, 21 May 2024 16:42:19 +0900 Subject: [PATCH] add gas limit when querying with static call --- x/evm/keeper/context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/evm/keeper/context.go b/x/evm/keeper/context.go index 6375378..61db288 100644 --- a/x/evm/keeper/context.go +++ b/x/evm/keeper/context.go @@ -149,7 +149,7 @@ func (k Keeper) EVMStaticCallWithTracer(ctx context.Context, caller common.Addre } sdkCtx := sdk.UnwrapSDKContext(ctx) - gasBalance := k.computeGasLimit(sdkCtx) + gasBalance := k.config.ContractQueryGasLimit retBz, gasRemaining, err := evm.StaticCall( vm.AccountRef(caller),