Skip to content

Commit 49fb167

Browse files
committed
Fix lint
1 parent f44bc8a commit 49fb167

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x/wasm/keeper/querier.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ func (q GrpcQuerier) SmartContractState(c context.Context, req *types.QuerySmart
203203

204204
// limit the gas to the queryGasLimit or the remaining gas, whichever is smaller
205205
ctx := sdk.UnwrapSDKContext(c)
206-
gasLimit := min(uint64(ctx.GasMeter().GasRemaining()), q.queryGasLimit)
206+
gasLimit := min(ctx.GasMeter().GasRemaining(), q.queryGasLimit)
207207
ctx = ctx.WithGasMeter(storetypes.NewGasMeter(gasLimit))
208208
// recover from out-of-gas panic
209209
defer func() {

0 commit comments

Comments
 (0)