New to elrond contracts.
I am trying to figure what is the absolute minimum to get an elrond rust contract to successfully build when doing erdpy contract build
.
To me, the contract would only be src/lib.rs
.
.
├── Cargo.toml
├── meta
│ ├── Cargo.toml
│ └── src
│ └── main.rs
└── src
└── lib.rs
The meta/src/main.rs
file has:
fn main() {
println!("hello");
//elrond_wasm_debug::meta::perform::<crowdfunding::AbiProvider>();
}
If I comment out the elronad_wasm....blah..blah
line in meta/src/main.rs
, and I remove everything that is generated during a build:
rm -rf $(find . -name Cargo.lock;
find . -type d -name target;
find . -type d -name output;
find . -type d -name wasm);
, then do the build, I get:
CRITICAL:cli:No file matches pattern [*.wasm].
If I UN-comment that line, re-do all the 'cleaning', and build again, no errors.