-
Webjojo | Uncode Lounge replied to the topic What is the exact recommended versions to compile CosmWasm smart contracts? in the forum Beginner Questions 11 months, 1 week ago
After that, GalacticShift TCG validator has compiled in a X post all the requirements needed.
Attention All Terra Classic Builders
Until the next chain upgrade (SDK 0.50)
Smart contract builds need specific settings or you’ll hit issuesHere is the config that works
• Use Rust/Cargo v1.82 or lower
Avoid 1.87+ it often adds bulk memory feature to builds, which is not supportedIf using cosmwasm-std v1.2 or v1.5, add this to your dependencies:
base64ct = “<1.8.0"base64ct in version 1.8+ requires edition 2024 which is only available in newer rust/cargo versions
To build:
Manual method
cargo build –release –target wasm32-unknown-unknown
wasm-opt -Oz -o artifacts/contract.wasm target/wasm32-unknown-unknown/release/contract.wasmTo build:
Dockerdocker run --rm
-v "$(pwd)":/code
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/target
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry
cosmwasm/rust-optimizer:0.16.1Ready to deploy on testnet?
Use:
• RPC: https://rpc.luncblaze.com
• LCD: https://lcd.luncblaze.comGet test tokens via @trebelfaucet_bot on Telegram, or ping @StrathCole or @Frag_dude on X
This information is brought to you by validator @Galactic_Shift

