could anyone help with this? thank you very much ????
mic49732581 activity
mic49732581 commented on is there a quick way to create a meta-esdt in devnet?
i need to test some SC functions that accept LKMEX but the devnet maiar has been shut down for a long time
mic49732581 commented on how does your erdjs code look like?
the abi is : { "name": "getLockStatus", "mutability": "readonly", "inputs": [], "outputs": [ { "type": "bool" }, { "type": "u64" }, { "type": "bool" } ] }
mic49732581 commented on Do you have an example ?
your answer already satisfied my question, thanks for helping????
mic49732581 commented on I want to generate a random number in an SC and check that it hasn't already been generated (meaning i want to generate X unique random numbers) i'm thinking about what is the best way to go about it, using a Managed Vec means that every time i have to read most of the Vec to check if it is contain... Read more
maybe i can divide the range by the number of numbers i need to generate?
mic49732581 commented on what does a singlevalue mapper point to when not initialized? for example singlevalue_mapper (u64) -> ManagedAddress what happens if i get the address for a non initialized value?
does it return an error with a ManagedAddress?
mic49732581 commented on And you also have enough values in your enum to fill the whole len? And you say this doesn't work? What does your mandos test say?
i'd assume it works considering i tried it on testnet and the whole vec is populated correctly
mic49732581 commented on have you actually initialized the block random seed with mandos before calling your function?
I haven't, but the same function generates multiple randoms (so essentially keeps trying to generate a new random until the next number is not in the vec mapper)
mic49732581 commented on anyone knows why an erdpy deploy on testnet could have this issue?
Does anyone know why I'd get this error when trying to deploy a contract with erdpy? I used the same command that was working before the testnet reset, and I do have egld in my wallet
mic49732581 commented on Why not have a struct that can hold month and day? Or use the power of Rust enums with fields?
Reiterating I'm not actually using an enum for days and months, that would be better handled with a struct
mic49732581 commented on Any reason why you want to compare it to a string and not another token identifier?
No, but not sure how to create a token identifier, there is no :: new method as far as I know
mic49732581 commented on There is no API for that. Why would you ever need it in a SC?
I was running the random number generator and noticed that very often the same number would come out twice if the scCall was within a few seconds, I'm guessing it has to do with the random block seed? So I thought to use nonce % random to get a more random number
mic49732581 commented on how do you send an NFT or ESDT in a smart contract call on erdpy?
Anyone know if I have to write a script or if erdpy cli supports it?