Willem Olding 0 Posted July 5, 2020 Share Posted July 5, 2020 (edited) Hi, I would usually post this on github but I couldn't find the repo for the docs/tutorials. It looks like there is a minor issue with the tutorial which results in the tests not passing. The init function should be annotated with the `#[init]` attribute macro e.g. ``` #[elrond_wasm_derive::contract(CrowdfundingImpl)] pub trait Crowdfunding { fn init(&self) { } } ``` should be ``` #[elrond_wasm_derive::contract(CrowdfundingImpl)] pub trait Crowdfunding { #[init] fn init(&self) { } } ``` This is repeated throughout the tutorial. It was a tricky one to find as the scenario tests fail with very little feedback. Once this is fixed though it all works. Great tutorial! Edited July 5, 2020 by Willem Olding Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.