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) :)
At the heart of the fix is passing the
--execute
flag tocargo 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
andink 4.2.0
. FWIW, I am building this using Rust 1.69 withnightly-2023-02-07
and running onsubstrate-contracts-node
v0.26.Additionallier, turns our if you revert the build order inside
contracts/Makefile
, thehighlighted_posts
contract ends up being compiled once (as opposed to twice as previously) :)