Create a new project
- Pop
- cargo-contract
pop new contract flipper -t standard
This command will create a new project folder named flipper with:
flipper
└─ lib.rs <-- Contract Source Code
└─ Cargo.toml <-- Rust Dependencies and ink! Configuration
└─ .gitignore
You can find the flipper code here.
To see other templates:
pop new contract
cargo contract new flipper
This command will create a new project folder named flipper with:
flipper
└─ lib.rs <-- Contract Source Code
└─ Cargo.toml <-- Rust Dependencies and ink! Configuration
└─ .gitignore
You can find the flipper code here.
Now that we are feeling confident things are working, we can actually compile the contract in the next step.