Adding a smart contract in your project
Command
To add a smart contract cargo in your project, run this command
$ houston add <contract name>
Creating a contract cargo with duplicate name will prompt overwrite checks. Answer them with caution to prevent loss.
Once the command is run, a contract cargo with the given name will be added to contracts/
directory with the following items.
contracts
|- <contract name>
| |- contract.rs
| |- lib.rs
| |- msg.rs
| |- state.rs
| |- Cargo.toml
Last updated
Was this helpful?