Skip to content

Commit dda8ea3

Browse files
committed
Use gas overflow error for ToWasmVMGas
1 parent ee260ac commit dda8ea3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x/wasm/types/gas_register.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ func calcWithFreeTier(storedBytes, freeTier uint64) (uint64, uint64) {
252252
func (g WasmGasRegister) ToWasmVMGas(source storetypes.Gas) uint64 {
253253
x := source * g.c.GasMultiplier
254254
if x < source {
255-
panic(storetypes.ErrorOutOfGas{Descriptor: "overflow"})
255+
panic(storetypes.ErrorGasOverflow{Descriptor: "ToWasmVMGas"})
256256
}
257257
return x
258258
}

0 commit comments

Comments
 (0)