Improve wording consistency in code/doc (#3365)

This commit is contained in:
Hadrien Croubois
2022-05-04 18:20:59 -03:00
committed by GitHub
parent 4574ce45b6
commit 07b1b472c0
10 changed files with 34 additions and 19 deletions

View File

@ -43,6 +43,8 @@ abstract contract PullPayment {
* checks-effects-interactions pattern or using {ReentrancyGuard}.
*
* @param payee Whose payments will be withdrawn.
*
* Causes the `escrow` to emits a {Withdrawn} event.
*/
function withdrawPayments(address payable payee) public virtual {
_escrow.withdraw(payee);
@ -63,6 +65,8 @@ abstract contract PullPayment {
*
* @param dest The destination address of the funds.
* @param amount The amount to transfer.
*
* Causes the `escrow` to emits a {Deposited} event.
*/
function _asyncTransfer(address dest, uint256 amount) internal virtual {
_escrow.deposit{value: amount}(dest);