1 dmn8392211779c/ElrondDevelopers 2years ago and when sending it from an unauthorized wallet to another I get nil user account error. is that the expected error?
1 dmn8392211779c/ElrondDevelopers 2years ago Hey! Anyone can tell me how I can approximate how much gas it would take to iterate through N elements of a managed vec/vecmapper?
1 dmn8392211779c/ElrondDevelopers 2years ago Hey! Quick question, how is the only_admin different from only_owner?
1 dmn8392211779c/ElrondDevelopers 2years ago Hi! I am using async calls and rellying on a callback to revert changes in case the async call fails. Problem is if it fails because it's not enough gas I still get the main transaction as successful so no reverting is happening. How can I avoid this?
1 dmn8392211779c/ElrondDevelopers 2years ago Hey! Is there a specific amount blocks/year? And if yes, do I just calculate by dividing nr of seconds in a year to 6?
1 dmn8392211779c/ElrondDevelopers 2years ago Hey! My question may be broad, so if it's too vague to answer I'll come back with it more nuanced after studying the Farm Staking SC. Here it is: How does the DEX Farm Staking SC take into account the total value staked by users in order to modify the APR?
2 dmn8392211779c/ElrondDevelopers 2years ago Hi! Is there any way in which you can get the value of EGLD in USDC in an SC?
1 dmn8392211779c/ElrondDevelopers 2years ago Hey! Are async calls limited to one per transaction? Or can I have another async call in the callback? I have an SC on shard 2. From that one, I want to pay to an SC on shard 1 some tokens and that call will pay me back another tokens. These new tokens I want to pay to another SC that is also on sh... Read more
1 dmn8392211779c/ElrondDevelopers 2years ago Hmm, you're saying I could use a queuemapper with tuples of (u64,BigUint)?
1 dmn8392211779c/ElrondDevelopers 2years ago If a set mapper does not guarantee order what is the point of unordered set mapper?
2 dmn8392211779c/ElrondDevelopers 2years ago So, I have different u64s representing timestamps. For each timestamp I want to save a BigUint. Whenever I call a method, I want to iterate through those timestamps chronologically and stop when I get to a timestamp that is higher than the current timestamp. For each iterated timestamp (that is sm... Read more
1 dmn8392211779c/ElrondDevelopers 2years ago Hi! If I use a MapMapper that has u64 as keys, will the keys be ordered when iterating over them?
1 dmn8392211779c/ElrondDevelopers 2years ago Was anyone able to solve the "rejected by user" bug when using Web Wallet?
1 dmn8392211779c/ElrondDevelopers 2years ago Hi! Is there any way to test whether an endpoint is only_owner using rust tests?
1 dmn8392211779c/ElrondDevelopers 2years ago I'm not very good at communication between SCs. If they are on the same shard will I be able to use that endpoint synchronously like an internal endpoint from my SC and use that result? Or using callbacks would be the only option?
1 dmn8392211779c/ElrondDevelopers 2years ago Hey, which is the correct way to modify a value for a specific key in a map mapper?
1 dmn8392211779c/ElrondDevelopers 2years ago Anybody knows by any chance what I am doing syntactically wrong here?
2 dmn8392211779c/ElrondDevelopers 2years ago Well, in earlier versions of wasm I was able to create vectors of payments that included egld and esdttokens as well. Isn't that possible anymore and if so why not?
1 dmn8392211779c/ElrondDevelopers 2years ago Hey there! Anybody has any advice/snippet of the interpretation of an SC query when the ABI is not available?
1 dmn8392211779c/ElrondDevelopers 2years ago @mwfiae I know at some point you said the only way of making a truly random number in an SC was to get the random number through an async call to an SC in another shard. Am I remembering correctly?
1 dmn8392211779c/ElrondDevelopers 2years ago Hi! Is there any way to know in a dApp whether I am currently on mainnet, devnet or testnet?
1 dmn8392211779c/ElrondDevelopers 2years ago Anybody has any idea when devnet api issues related to NFTs will be solved?
1 dmn8392211779c/ElrondDevelopers 2years ago Is there any good example on the elrond git on using proxy scs?
1 dmn8392211779c/ElrondDevelopers 2years ago So basically whichever SC uses randomness in a call of an untrusted user could be vulnerable?
1 dmn8392211779c/ElrondDevelopers 2years ago I get your frustration at people saying it's Elrond's fault, but maybe, if you know the issue is bad code, could teach us devs a bit on what is the bad practice they used and when and how to avoid that?
1 dmn8392211779c/ElrondDevelopers 2years ago Anyone has any insight on providing a MultiValueEncoded as an argument in rust tests?
1 dmn8392211779c/ElrondDevelopers 2years ago You need to save a an address and for each address a biguint?
1 dmn8392211779c/ElrondDevelopers 2years ago Is there any equivalent of the js split method we can use in SCs?
1 dmn8392211779c/ElrondDevelopers 2years ago Does anybody have a "clean code" way of getting an option value and requiring it to be existent?
1 dmn8392211779c/ElrondDevelopers 2years ago Anybody can explain why putting #[indexed] in events' arguments is needed? What does it mean?
1 dmn8392211779c/ElrondDevelopers 2years ago Considering that UnorderedSetMapper is a wrapper over VecMapper, it should also be indexed starting from 1, right?
1 dmn8392211779c/ElrondDevelopers 2years ago Hi! Anybody knows which would be the easiest way to executed some code right after login when using any of the dappcore LoginButtons?
1 dmn8392211779c/ElrondDevelopers 2years ago anybody has any idea on which are the possible causes for which querying a smart contract might return 0 while sending a transaction to see that query actually returns the good value?
3 dmn8392211779c/ElrondDevelopers 2years ago I know that lots of people choose not to use dapp-core when building dApps. For those of you that choose building stuff "from scratch" using erdjs, why so? Which are the general advantages of doing so in your opinion?
1 dmn8392211779c/ElrondDevelopers 2years ago Hey there! Anybody can explain what exactly happens when the owner of an NFT wipes that NFT?
1 dmn8392211779c/ElrondDevelopers 2years ago Anybody has any tips on saving a vector of tuples in memory in a SC?
1 dmn8392211779c/ElrondDevelopers 2years ago I heard some people had issues with using it, but I will check it out. Is the transactionWatcher working with the dapp-core sendTransactions method?
1 dmn8392211779c/ElrondDevelopers 2years ago From what I see when I make an api call in api.elrond.com I can also see the attributes as part of the metadata. From what I understand they are not accessible in SC in any way, right?
1 dmn8392211779c/ElrondDevelopers 2years ago And another question to consider then, how should I be able to get NFT attributes in an SC?
1 dmn8392211779c/ElrondDevelopers 2years ago So then isn't it a better practice to just store all your data onchain to have access to it?
1 dmn8392211779c/ElrondDevelopers 2years ago Hi! I see that this endpoint also returns attributes: https://docs.elrond.com/developers/developer-reference/elrond-wasm-api-functions/#get_esdt_token_data Does it only return the cid of the metadata file like on api.elrond.com or does it actually return the attributes?
1 dmn8392211779c/ElrondDevelopers 2years ago So, I have this code for issuing a fungible token in an SC. Whenever I call it I get a transaction like this: https://devnet-explorer.elrond.com/transactions/6b731fdf7291e3852f10fb1494e3c4c0bee5aca8a8db79057fb4d580f0834848 Which seems like it creates the token but it does not send it to me, which i... Read more
1 dmn8392211779c/ElrondDevelopers 2years ago Do you know how I could add an ESDT or NFT transfer to this?