Open sourabhniyogi opened 1 year ago
Hi @sourabhniyogi , I can see the contracts that failed can not be built with cargo contract v3. Could you try changing #![cfg_attr(not(feature = "std"), no_std)]
to #![cfg_attr(not(feature = "std"), no_std, no_main)]
and removing the crate-type
from Cargo.toml
?
I tried Standardised verifiable builds on 4 cases (where all 4 cases were generated from ChainIDE WASM Contract templates and compiled in ChainIDE), and flipper compiled but the other 3 did not. Errors are included below:
NO ERRORS
We were happy that case 1 generated the same codehash as chainide but any insights to cases 2/3/4 would be appreciated!
@SkymanOne advises that this is not an issue with the (new!) "paritytech/contracts-verifiable" and recommended opening an issue here.
At the end of the day we wish for PSP22/34/Uniswapv2 contract code that can serve as templates that can be verified in paritytech/contracts-verifiable.