Skip to content

Conversation

@4samad
Copy link

@4samad 4samad commented Jul 5, 2022

the address needs to be payable to receive eth.

the address needs to be payable to receive eth.
@xyz899
Copy link

xyz899 commented Aug 8, 2023

Hi !
It seems there might be a misunderstanding regarding the use of the payable modifier in the owner() function.
In Solidity, the address type is implicitly payable, which means it can send and receive Ether by default. That's why the _owner address can be used with the .transfer() function without explicitly marking it as payable. So, even though the owner() function is not explicitly marked as payable, the _owner address can still be used to transfer Ether.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants