Skip to content

Commit 9c3a892

Browse files
authored
Merge pull request #2195 from CosmWasm/co/fix-gas-conversion-error
Use gas overflow error for `ToWasmVMGas`
2 parents 1756d2d + dda8ea3 commit 9c3a892

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x/wasm/types/gas_register.go

+1-1
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)