Cardinal-Cryptography / bulletin-board-example

Repository with example smart contracts and corresponding frontend
12 stars 4 forks source link

Fix the deploy script #22

Closed piotrMocz closed 1 year ago

piotrMocz commented 1 year ago

At the heart of the fix is passing the --execute flag to cargo contract calls. Otherwise it just performs a dry-run which leaves things in a slightly confusing state.

Additionally, the code has been adapted to work with cargo-contract 3.0.1 and ink 4.2.0. FWIW, I am building this using Rust 1.69 with nightly-2023-02-07 and running on substrate-contracts-node v0.26.

Additionallier, turns our if you revert the build order inside contracts/Makefile, the highlighted_posts contract ends up being compiled once (as opposed to twice as previously) :)