Skip to content

Commit

Permalink
fix the query gas calculate
Browse files Browse the repository at this point in the history
  • Loading branch information
lyh169 committed Aug 29, 2023
1 parent 3301eae commit f3b69e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/wasm/keeper/query_plugins.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (q QueryHandler) Query(request wasmvmtypes.QueryRequest, gasLimit uint64) (
}

func (q QueryHandler) GasConsumed() uint64 {
return q.Ctx.GasMeter().GasConsumed()
return q.gasRegister.ToWasmVMGas(q.Ctx.GasMeter().GasConsumed())
}

type CustomQuerier func(ctx sdk.Context, request json.RawMessage) ([]byte, error)
Expand Down

0 comments on commit f3b69e2

Please sign in to comment.