Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add customizable WasmLimits #1989

Merged
merged 11 commits into from
Nov 8, 2024
Prev Previous commit
Next Next commit
Fix typo
chipshort committed Nov 7, 2024
commit 0c551b936526bfe7cd0887a39d133355286c7d7b
4 changes: 2 additions & 2 deletions x/wasm/keeper/keeper_cgo.go
Original file line number Diff line number Diff line change
@@ -77,8 +77,8 @@ func NewKeeper(
Cache: wasmvmtypes.CacheOptions{
BaseDir: filepath.Join(homeDir, "wasm"),
AvailableCapabilities: availableCapabilities,
MemoryCacheSize: wasmvmtypes.NewSizeMebi(contractMemoryLimit),
InstanceMemoryLimit: wasmvmtypes.NewSizeMebi(nodeConfig.MemoryCacheSize),
MemoryCacheSize: wasmvmtypes.NewSizeMebi(nodeConfig.MemoryCacheSize),
InstanceMemoryLimit: wasmvmtypes.NewSizeMebi(contractMemoryLimit),
},
WasmLimits: vmConfig.WasmLimits,
}, nodeConfig.ContractDebugMode)