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

@ -34,6 +34,8 @@ contract Escrow is Ownable {
/**
* @dev Stores the sent amount as credit to be withdrawn.
* @param payee The destination address of the funds.
*
* Emits a {Deposited} event.
*/
function deposit(address payee) public payable virtual onlyOwner {
uint256 amount = msg.value;
@ -50,6 +52,8 @@ contract Escrow is Ownable {
* checks-effects-interactions pattern or using {ReentrancyGuard}.
*
* @param payee The address whose funds will be withdrawn and transferred to.
*
* Emits a {Withdrawn} event.
*/
function withdraw(address payable payee) public virtual onlyOwner {
uint256 payment = _deposits[payee];