Skip to content

Commit bfaf589

Browse files
authored
Fix gas calculation (#1567)
1 parent 881d6a7 commit bfaf589

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x/wasm/keeper/query_plugins.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func (q QueryHandler) Query(request wasmvmtypes.QueryRequest, gasLimit uint64) (
7575
}
7676

7777
func (q QueryHandler) GasConsumed() uint64 {
78-
return q.Ctx.GasMeter().GasConsumed()
78+
return q.gasRegister.ToWasmVMGas(q.Ctx.GasMeter().GasConsumed())
7979
}
8080

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

0 commit comments

Comments
 (0)