Skip to content

Commit d455a68

Browse files
committed
Improve docs
1 parent 7b88fd4 commit d455a68

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

types/config.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ import (
66

77
// VMConfig defines the configuration for the VM.
88
// For full documentation see the Rust side:
9-
// https://github.com/CosmWasm/cosmwasm/blob/main/packages/vm/src/config.rs#L27
9+
// https://docs.rs/cosmwasm-vm/2.2.0-rc.1/cosmwasm_vm/struct.Config.html
1010
type VMConfig struct {
1111
WasmLimits WasmLimits `json:"wasm_limits"`
1212
Cache CacheOptions `json:"cache"`
1313
}
1414

15+
// WasmLimits defines limits for static validation of wasm code that is stored on chain.
16+
// For full documentation see the Rust side:
17+
// https://docs.rs/cosmwasm-vm/2.2.0-rc.1/cosmwasm_vm/struct.WasmLimits.html
1518
type WasmLimits struct {
1619
InitialMemoryLimit *uint32 `json:"initial_memory_limit,omitempty"`
1720
TableSizeLimit *uint32 `json:"table_size_limit,omitempty"`

0 commit comments

Comments
 (0)