This is the check that fails I\m expecting it to fail but with a different error https://github.com/bogdan-marian/xlauncher-presale/blob/d1c7e394a1f26dad6ce32498b47f8c18d698d320/xlaucher-presale-contract/mandos/09-fund-z2i.scen.json#L135
bog8304552146 activity
bog8304552146 commented on I'm trying to refactor a VecMapper to UnorderedSetMapper. Previousely this is how my mandos check looked like "str:clientList|str:.len": "1", "str:clientList|str:.item|u32:1": "address:client1" # how the mapper looks now #[view(getClientList)] #[storage_mapper("clien... Read more
I figured it out "str:clientList|str:.len": "1", "str:clientList|str:.index|address:client1": "1", "str:clientList|str:.item|u32:1": "address:client1"
bog8304552146 commented on For my information, to get the sc_print text displayed, do you run the SC locally ?
To be more precise what I do is create mandos test and then wrap them up on runst test like this #[test] fn unstake_case_2_a_rs() { elrond_wasm_debug::mandos_rs("mandos/07-unstake-case-2-a.scen.json", world()); } and then run this ones when I need to see the prints.
bog8304552146 commented on For storage SingleValueMapper how do you check that this value exists so you do not override it my mistake?
I see this trick on nft-miter on a u64 field. require!( !self.price_tag(nft_nonce).is_empty(), "Invalid nonce or NFT was already sold" ); I guess that is good enough ????
bog8304552146 commented on I'm a bit confused by what you wrote ? How exactly does your first struct look like?
These is the entire set
#[derive(TypeAbi, TopEncode, TopDecode, ManagedVecItem, NestedEncode, NestedDecode)]
pub struct VariableContractSettings
bog8304552146 commented on I have this struct
pub struct Pull {
pub id: u64,
pub locking_time_span: u64,
pub apy_configuration: ManagedVec,
}
and I need at init time to have apy_configuration initialized to an empty vector.
How do I initialize an empty ManagedVec ?
I think I found it ManagedVec::new();
bog8304552146 commented on did u find a solution to this ?
Yes I had to uninstall rust and erdpy and then only install erdpy. (erdpy handles also the rust instalation)
bog8304552146 commented on And without those steps it shows no error?
This error can be reproduced using this Dockerfile https://github.com/bogdan-marian/learn-elrond/tree/main/docker-dev-env The smart contract end tests are in same project here: https://github.com/bogdan-marian/learn-elrond/tree/main/my-contract
bog8304552146 commented on Never heard of that one before ? Have you tried removing steps one by one until you find the one that's failing?
Yes. I remove all the steps. Each of this steps report the same error
bog8304552146 commented on how long till millionaire if have 100 egld??
It needs to hit 10k. You probably need to wait 5 years.