Redspot is an Substrate pallet-contracts (ink!) development environment. Compile your contracts and run them on a different networks. Redspot's core forks from Hardhat but changed a lot to suit substrate.
cargo-contract v0.8.0 changes the output abi and wasm directory and causing redspot failing to move these files to the artifacts/ dir.
The new generate files are in project-home/contract/target/ink instead of project-home/contract/target.
This should be an easy fix.
As shown below:
Original wasm size: 68.2K, Optimized: 42.8K
Your contract artifacts are ready. You can find them in:
/Users/xx/xx/xxx/xxxxx/contracts/target/ink
- xxxxx.contract (code + metadata)
- xxxxxx.wasm (the contract's code)
- metadata.json (the contract's metadata)
An unexpected error occurred:
Error: ENOENT: no such file or directory, copyfile
'/Users/xx/xx/xx/xx/contracts/target/metadata.json' -> '/Users/xx/xx/xx/xx/contracts/target/xx.json'
cargo-contract v0.8.0 changes the output abi and wasm directory and causing redspot failing to move these files to the
artifacts/
dir.The new generate files are in
project-home/contract/target/ink
instead ofproject-home/contract/target
.This should be an easy fix.
As shown below: