Skip to content

Creating the WASM file (For Runtime Upgrades)

Marko Petrlić edited this page Sep 21, 2022 · 1 revision

Building the WASM file for a runtime upgrade can be done by executing the following command:

cargo build --release -p alphanet-runtime

Just make sure that alphanet-runtime flag is replaced with mainnet-runtime when doing runtime upgrades on Mainnet.

One the command is done the wasm file will be located in the following directory: target/release/wbuild/alphanet-runtime. 3 wasm files should be there but we care only about the .compact.wasm one.

Click here for additional information.