We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3dc9bed + 7f02f57 commit 84bcb39Copy full SHA for 84bcb39
x/wasm/internal/keeper/keeper.go
@@ -28,8 +28,10 @@ import (
28
// Rough timing have 88k gas at 90us, which is equal to 1k sdk gas... (one read)
29
const GasMultiplier = 100
30
31
-// MaxGas for a contract is 900 million (enforced in rust)
32
-const MaxGas = 900_000_000
+// MaxGas for a contract is 10 billion wasmer gas (enforced in rust to prevent overflow)
+// The limit for v0.9.3 is defined here: https://github.com/CosmWasm/cosmwasm/blob/v0.9.3/packages/vm/src/backends/singlepass.rs#L15-L23
33
+// (this will be increased in future releases)
34
+const MaxGas = 10_000_000_000
35
36
// InstanceCost is how much SDK gas we charge each time we load a WASM instance.
37
// Creating a new instance is costly, and this helps put a recursion limit to contracts calling contracts.
0 commit comments