Got error "linking with rust-lld failed: exit code: 1" when compiling contracts in examples

I got a similar error compiling a contract. In my case I found deps.js looks for contract.wasm but

secret_contracts/{CONTRACT_NAME}/target/wasm32-unknown-unknown/release/contract.wasm

was named

secret_contracts/{CONTRACT_NAME}/target/wasm32-unknown-unknown/release/{CONTRACT_NAME}.wasm

fixed by manually renaming to contract.wasm and recompiling. Maybe this isn’t the right solution but it compiled :slight_smile: … happens if you don’t change the name in Cargo.toml file

2 Likes