mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add rounding warning
Move warning
This commit is contained in:
@@ -149,6 +149,9 @@ Sending and Receiving Ether
|
||||
into the sending contract or other state changes you might not have thought of.
|
||||
So it allows for great flexibility for honest users but also for malicious actors.
|
||||
|
||||
- Use the most precise units to represent the wei amount as possible, as you lose
|
||||
any that is rounded due to a lack of precision.
|
||||
|
||||
- If you want to send Ether using ``address.transfer``, there are certain details to be aware of:
|
||||
|
||||
1. If the recipient is a contract, it causes its fallback function to be executed which can, in turn, call back the sending contract.
|
||||
|
||||
Reference in New Issue
Block a user