1

No internal and private function can't be declared as payable you will get a compiler error TypeError: "internal" and "private" functions cannot be payable The idea of having payable modifier is "to permission or prevent intentional and accidental value transfers" and using it twice first in external/public function and then ...


1

Add: dotenv: .env To your brownie-config.yaml. It’s not picking up your environment variables, and this forces brownie to pick them up out of your .env file.


1

Contract cannot take ethers from wallet address and transfer it, you need to pass the amount you wish to transfer as VALUE. Then your code should look like this: function sendEther(address payable recipient) public payable { recipient.transfer(msg.value); } Then if you want to transfer only exact one ether you can have the following condition in your ...


Only top voted, non community-wiki answers of a minimum length are eligible