Open franksanchez112595 opened 1 year ago
I don't know anything about cargo build-bpf
and we don't support that. The wasm build command that is working is: cargo build --release --lib --target wasm32-unknown-unknown
. The --lib
part ensures not examples, tests etc. are compiled to Wasm. Maybe that helps.
I cloned cw20-base and tried to cargo build-bpf but failed.
This is Cargo.toml
I got error like this
Unsupport targets doesn't work, too. I added the getrandom dependency mannually
getrandom = { version = "0.2", features = ["js"] }
in Cargo.toml file but its version doesn't change into 0.2.8 in Cargo.lock and the error still happened.Is there anyone who can help me urgently? I pulled tons of hairs to solve it for some days.