Fixed a issue where storing contracts on Pulsar-2 gave the following error:
raw_log: 'failed to execute message; message index: 0: Execution error: Error during
static Wasm validation: Wasm contract requires unsupported import: "wbindgen_placeholder.__wbindgen_describe".
Imports supported by VM: ["env.db_read", "env.db_write", "env.db_remove", "env.canonicalize_address",
"env.humanize_address", "env.query_chain", "env.secp256k1_verify", "env.secp256k1_recover_pubkey",
"env.secp256k1_sign", "env.ed25519_verify", "env.ed25519_batch_verify", "env.ed25519_sign",
"env.db_scan", "env.db_next"]. Contract version too new for this VM?: create contract
failed'
The fix involved:
- Removing chrono
- Updating rand package imports in dev-dependencies to be rand = { version = "0.8.5", default-features = false }
- Cleaning up any stray or unneeded rand dependencies
These fixes were needed to clean wasm-bindgen and getrandom imports out of the Cargo.lock so that the contracts would be compiled normally without use of wasm-bindgen.
The tag was made to ensure that future deployment of oracles built using Cosmwam v0.10 are stable and ready in preparation of Bonds being launched.