Make sure you have type ChainExtension
defined in your runtime:
impl pallet_contracts::Config for Runtime {
....
type ChainExtension = FetchRandomExtension;
}
...as indicated in the docs:
Also remember that there are two ways of running the substrate-contracts-node:
- Cloning it, modifying it, building it, running it:
git clone https://github.com/paritytech/substrate-contracts-node
cd substrate-contracts-node
cargo run --release -- --dev
OR
- Using
cargo install
and just running it:
cargo install contracts-node --git https://github.com/paritytech/substrate-contracts-node.git --force --locked
substrate-contracts-node --dev
Turns out I was modifying my code and running my node using the second option (which was a completely different install!) 🤦