function is for a 0.01 ETH donation, how can i transfer the ETH from the msg.sender to the contract?
there is no transferFrom for native tokens. Only payable functions with msg.value
It comes something like address(this).transfer(msg.value)
Обсуждают сегодня