The repo version is not necessarily the prod version Someone talked about this earlier, trying to find the messages
The8325519926 activity
The8325519926 commented on Hello, is there something like ManagedVec that only can hold unique values?
SetMapper or UnorderedSetMapper https://docs.elrond.com/developers/developer-reference/storage-mappers/
The8325519926 commented on Can anyone explain to me please why I just had a random smart contract call from my trust wallet for egld? When I haven’t done any interaction for egld in weeks?
Without the tx hash, that's gonna be hard
The8325519926 commented on And what would be an exmaple usecase of a SFT?
When you want several instances of the same item Basic example: you want to sell 30 tickets for the same show.
The8325519926 commented on Also: --metadata-payable ‼️ mark the contract as payable (default: not payable) If I mark a SC as not payable but it has [payable("*)] functions, they will still work, right? What does not payable mean then?
Not payable means that a user can't send tokens to the contract unless he is calling a payable endpoint
The8325519926 commented on There is no documentation on how to use rust testing framework. How to setup your environment now to run tests how to put brakepoints how to inspect variables and soo one. I wouls that I find somewhere instructions on how to debug contracts. When you come from different programming languages to elro... Read more
Documentation for rust testing: https://docs.elrond.com/developers/developer-reference/rust-testing-framework/
The8325519926 commented on Why would you need to check that?
This is a requirement of my contract If a user tries to add a number that is already in the storage, I will reject the transaction
The8325519926 commented on Do you know by any chance if I can get an item by index in a setmapper?
maybe using .iter() and then .nth(random_index)
The8325519926 commented on What does your cargo.toml contain?
Carog.toml: [workspace] members = [ "src", "src/sc_one", "src/sc_one/meta", "src/sc_two", "src/sc_two/meta" ] src/Cargo.toml [package] name = "multi-scs" version = "0.0.0" edition = "2018" publish = false [dependencies.elrond-wasm] version = "0.29" [dev-dependencies.elrond-wasm-debug] version = "0.29" src/sc_one/Cargo.toml [package] name = "sc_one" version = "0.0.0" authors = [ "you",] edition = "2018" publish = false [lib] path = "src/empty.rs" [dev-dependencies] num-bigint = "0.4.2" [dependencies.elrond-wasm] version = "0.30.0" [dev-dependencies.elrond-wasm-debug] version = "0.30.0" src/sc_two/Cargo.toml [package] name = "sc_two" version = "0.0.0" authors = [ "you",] edition = "2018" publish = false [lib] path = "src/empty.rs" [dev-dependencies] num-bigint = "0.4.2" [dependencies.elrond-wasm] version = "0.30.0" [dev-dependencies.elrond-wasm-debug] version = "0.30.0"
The8325519926 commented on Do you know by any chance if I can get an item by index in a setmapper?
never used, sorry