1

A token ERC-20 smart contract can call functions when the transfer() function is called to send or receive tokens. I can test if is the owner address and make things.

Its possible that my smart contract know if the owner address receives ethers (no tokens) and call a function?

1 Answer 1

1

You can implement in your code a PAYABLE function that accepts Ether and transfer it to the owner's account

function deposit() public payable { require(msg.value > 0); Owner_Address.transfer(msg.value); /* Make your things ;) */ } 
0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.