Posted on c/ElrondDevelopers 1 DrD515197901c/ElrondDevelopers 2 years ago I have this code: let caller = self.blockchain().get_caller(); let balance = self.blockchain().get_balance(&caller); self.send().direct_egld(&caller, &balance, b""); why do I get "failed transfer (insufficient funds)" ? Comment 1 Comments mwf81318617 2years ago Sure you want to get the balance of the caller and not the balance of the smart contract? :)
Sure you want to get the balance of the caller and not the balance of the smart contract? :)