Clone node repo
Switch to the root directory of the cloned project
- Build the Wasm bytecode
cargo build --release
Go to Democracy page https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fwestlake.datahighway.com#/democracy
The first step is to submit a preimage of the proposal. Click on Submit preimage
Choose sudo as extrinsic and select sudoUncheckedWeight as function
Choose system as call and setCode as function
Click the code input field, and select the Wasm binary that defines the upgraded runtime:
Copy the preimage hash. This represents the proposal. You will use this hash when submitting the actual proposal.
Leave the value for the _weight parameter at the default of 0.
Click "Submit Transaction" and then "Sign and Submit".
Select the account from which you want to submit the proposal.
Enter the preimage hash related to the proposal.
Set the locked balance.
Click the Submit proposal button and sign the transaction