solidity
solidity copied to clipboard
Stop recommending .transfer
Page
The Address.transfer function may not be compatible with smart contract recipients due to gas limits.
Since smart contract recipients are first-class citizens on Ethereum we should either:
- Stop recommend
.transfereverywhere (in documentation) and deprecate the function, or - Clearly explain the limitations of
.transfereverywhere it is mentioned (in documentation) and explain the difference of.call("")inline.
Discussion
I wanted to discuss this to get approval before offering any specific changes.