Skip to content

Commit

Permalink
override default wasm variable to extend wasm code size
Browse files Browse the repository at this point in the history
  • Loading branch information
GNaD13 committed Jan 2, 2025
1 parent 8e6dacc commit 17bf98c
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 17bf98c

Please sign in to comment.