Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 672 Bytes

File metadata and controls

30 lines (17 loc) · 672 Bytes

Build

Let's compile the smart contract.

cargo +nightly contract build

Then, you can see something like this:

After compiling, you can find the target folder which contains this wasm file on your directory.

Contract Metadata

As a next step, we will generate the contract metadata.

cargo +nightly contract generate-metadata

The metadata is also known as contract ABI.

Now, you can find a metadata.json file in the same directory.

Any questions? Feel free to ask us.