Skip to content

Commit

Permalink
Merge pull request #62 from oraichain/wasm-variables
Browse files Browse the repository at this point in the history
Dang/increase wasm code size
  • Loading branch information
GNaD13 authored Jan 6, 2025
2 parents 53036ea + 17bf98c commit 3bddd33
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,11 @@ type WasmApp struct {
configurator module.Configurator
}

func overrideWasmVariables() {
// Override Wasm size limitation from WASMD.
wasmtypes.MaxWasmSize = 3 * 1024 * 1024
}

// NewWasmApp returns a reference to an initialized WasmApp.
func NewWasmApp(
logger log.Logger,
Expand Down Expand Up @@ -404,6 +409,7 @@ func NewWasmApp(
bApp.SetVersion(version.Version)
bApp.SetInterfaceRegistry(interfaceRegistry)
bApp.SetTxEncoder(txConfig.TxEncoder())
overrideWasmVariables()

keys := storetypes.NewKVStoreKeys(
authtypes.StoreKey, banktypes.StoreKey, stakingtypes.StoreKey, crisistypes.StoreKey,
Expand Down

0 comments on commit 3bddd33

Please sign in to comment.