mandrean / cw-optimizoor

A blazingly fast compiling & optimization tool for CosmWasm smart contracts.
MIT License
50 stars 6 forks source link

Unkown opcode error #41

Closed Kayanski closed 10 months ago

Kayanski commented 1 year ago

With Rust 1.70, unsupported op codes appear when uploading the wasms on-chain. (See : https://github.com/CosmWasm/cosmwasm/issues/1727)

One fix is available on that issue. Would it be possible to implement that ?

Thanks

gorgos commented 10 months ago

You can upgrade to CosmWasm 1.5 as a solution. Or try target_rustc_args: Some(vec!["target-feature=+sign-ext".to_string()]) (but I haven't tested this)

Kayanski commented 10 months ago

Ok, this works with cosmwasm 1.5 indeed, thank you !