1 mic49732581c/ElrondDevelopers 2years ago in erdjs 10 is there a way of getting the smart contract address after deploying?
1 mic49732581c/ElrondDevelopers 2years ago what do you usually use to handle your deployments? erdpy cli?
1 mic49732581c/ElrondDevelopers 2years ago If you run multiple transactions to a smart contract calling a function that pushes to an arrays, if you await pending, will they all be executed in order? I’m guessing they are executed in order of the nonce right?
1 mic49732581c/ElrondDevelopers 2years ago i'm trying to set multiple transactions in a row in erdjs 10 (backend) but the provider gets stuck after the first one (the transactions are correct, i think i'm doing something wrong when initializing the provider) i am using the provider as a singleton and passed to the other classes as a static s... Read more
1 mic49732581c/ElrondDevelopers 2years ago is there a way to get the data out of a MultiValue3 inside a rust function? i want to call another function that returns a multiValue, how do i extract the content?
1 mic49732581c/ElrondDevelopers 2years ago when making a website with info from a smart contract, does it make more sense to wrap all the info in one ScQuery that returns everything needed through a tuple or to make multiple queries?
1 mic49732581c/ElrondDevelopers 2years ago 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
1 mic49732581c/ElrondDevelopers 2years ago 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?
1 mic49732581c/ElrondDevelopers 2years ago Is there any way to get a keystore file from a seed phrase?
1 mic49732581c/ElrondDevelopers 2years ago so if i don't add refund to mandos, if i add too much gas the tx will generate an error?
1 mic49732581c/ElrondDevelopers 2years ago i have a function that generates more than 1 random number, i think in mandos the same random number will be generated (so the all the generated numbers will he equal) because of the random seed not chaning, am i wrong?
2 mic49732581c/ElrondDevelopers 2years ago i keep having issues in mandos when trying to deploy a SC, i keep getting an account not found error eventhough i defined both the creator address and the sc address, any suggestions?
2 mic49732581c/ElrondDevelopers 2years ago anyone knows why an erdpy deploy on testnet could have this issue?
1 mic49732581c/ElrondDevelopers 2years ago so you advise instead to create a struct for each season and each struct has its own vec?
1 mic49732581c/ElrondDevelopers 2years ago 6 | #[derive(TopEncode, TopDecode,TypeAbi, NestedEncode, NestedDecode, PartialEq, Clone, ManagedVecItem)] | ^^^^^^^^^^^^^^ | = note: see issue #44265 for more informa... Read more
1 mic49732581c/ElrondDevelopers 2years ago is there a way to clear single value mapper for every key?
1 mic49732581c/ElrondDevelopers 2years ago what is are bool variables initialized to by default in the SC, if i create a singlevalue mapper of type bool, will it be false by default?
1 mic49732581c/ElrondDevelopers 2years ago If you start having a smart contract that is too big, and it makes the code less readable, are there ways to divide functions in different files?
2 mic49732581c/ElrondDevelopers 2years ago if it is a view function, does it have limits, considering there is no tx cost, would it result in the tx being dropped for a large vec?
1 mic49732581c/ElrondDevelopers 2years ago is it possible to return a VecMapper from a SC function? or should we return a ManagedVec?
1 mic49732581c/ElrondDevelopers 2years ago so i am running this transaction on the testnet, but for some reason it won't show on the SC's current transactions and doesn't say the gas used, i was trying to test gas consumption for this sc call. any idea why this happens?
1 mic49732581c/ElrondDevelopers 2years ago are enums encoded from 0u8? ( i presume) or from 1u8? so lets say an enum {startred,ended} would it be 00 or 01 or 01,02 ?
1 mic49732581c/ElrondDevelopers 2years ago if i want to have a function that sets an Enum in SC storage, do i have to pass a u8 as a parameter?
1 mic49732581c/ElrondDevelopers 2years ago let's say you have a struct with 4 Biguint, those won't be 0 by default?
1 mic49732581c/ElrondDevelopers 2years ago how are storage values initialized in rust SC? if i have single value mapper that holds a BigUint, what happens if i add 1 to it? will it be == 1 ?
1 mic49732581c/ElrondDevelopers 2years ago do multi transfers consume less gas than single transfers?
1 mic49732581c/ElrondDevelopers 2years ago Is there a way to get all nonces present in your SC for an esdt? Or do you have to manually keep track in storage every time one is received?
1 mic49732581c/ElrondDevelopers 2years ago In a function that accepts esdt payments, if I call the SC api to check esdt balance will it consider the token just received or will it ignore it in case the transaction is reverted? For example if I have balance 0 and I have a payable function and receive 100, if I check the balance in the functio... Read more
1 mic49732581c/ElrondDevelopers 2years ago Or you can maybe write a method to migrate the data to the new struct, empty the old struct and then upgrade removing the old struct from the code?