https://docs.substrate.io/tutorials/v3/ink-workshop/pt3/
Test the smart contract
$ cargo +nightly test
Build the smart contract
$ cargo +nightly contract build
$ substrate-contracts-node --dev --tmp
Also test in Canvas UI:
https://docs.substrate.io/tutorials/v3/ink-workshop/pt2/
- Click the Upload & Instantiate Contract button.
- Choose an Instantiation account (e.g. ALICE).
- Give the contract a descriptive Name (e.g. Flipper Contract).
- Drag the flipper.contract file that contains the bundled Wasm blob and metadata into the drag & drop area. You will see the UI parse the metadata and showing what functions the contract contains.
- Click the Constructor Details