1 jac8475424200c/ElrondDevelopers 2years ago Hello! Would you know if it is possible for a contract to read the storage of another contract, e.g. a storage_mapper, even if it is not preceeded by the tag #view or #endpoint?
1 jac8475424200c/ElrondDevelopers 2years ago Hey @iancudorinmarian ! We found the following bug: if a smart contract A sends tokens via self.send().direct(receiver, token_id, token_nonce, token_amount, b"Data") to a smart contract B with some non-empty data as last argument, the transaction fails. You can find a reproduction of the bug in thi... Read more
2 jac8475424200c/ElrondDevelopers 2years ago Hello guys!! I have a contract A (shard 1) calling a method of contract B (shard 0) that does nothing, and then checks in a callback whether the ManagedAsyncCallResult was successful. Contract A #[elrond_wasm::contract] pub trait ContractA { #[init] fn init(&self) {} #[endpoint(askNothing)... Read more
1 jac8475424200c/ElrondDevelopers 2years ago Hey @mwfiae ???? I was looking at an issue you opened a few weeks ago about self.blockchain().get_sc_balance() making Mandos to crash. Did you notice a difference whether the contract you are checking holds some of the desired tokens or not?
1 jac8475424200c/ElrondDevelopers 2years ago Hey Catalin! The problem is that I don’t assume anything on the method contract B, as I do not own it. I can only assume that I own contract A, and that the method of contract B sends tokens to the caller. Is there a way for contract A to detect which tokens are received?
4 jac8475424200c/ElrondDevelopers 2years ago Hey guys!! I have a contract A calling a method of contract B that takes 1 argument and a token as inputs. When contract B is in the same shard as contract A, everything works fine, the transaction looks like: `ESDTTransfer@TOKEN-abcdef@1000000@method_contract_b@argument_contract_b` However, when ... Read more
1 jac8475424200c/ElrondDevelopers 2years ago Hey! Can you use callback functions for non-asynchronous calls?
2 jac8475424200c/ElrondDevelopers 2years ago Hello guys!! Let’s say contract A calls a method of contract B. Is there a way to know the tokens that contract A received as a result of this call?