You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Escrow.deposit function emits a Deposited event, which is not stated in its doc.
Similarly, the Escrow.withdraw function emits a Withdrawn event, which is not stated in its doc either.
A potential fix could be adding "Emits a {Deposited} event" to the doc of Escrow.deposit, and adding "Emits a {Withdrawn} event" to Escrow.withdraw.
These events can also transitively emit in the functions PullPayment._asyncTransfer and PullPayment.withdrawPayments, because they call Escrow.deposit and Escrow.withdraw respectively.
I'll add the details in Escrow.sol.
About the PullPayment, calling withdrawPayments or _asyncTransfer will indeed trigger an event, but at another address (the escrow and the PullPayment are two different contract) so the wording should reflect that.
Hi,
The
Escrow.deposit
function emits aDeposited
event, which is not stated in its doc.Similarly, the
Escrow.withdraw
function emits aWithdrawn
event, which is not stated in its doc either.A potential fix could be adding "Emits a {Deposited} event" to the doc of
Escrow.deposit
, and adding "Emits a {Withdrawn} event" toEscrow.withdraw
.openzeppelin-contracts/contracts/utils/escrow/Escrow.sol
Line 41 in fcf35e5
openzeppelin-contracts/contracts/utils/escrow/Escrow.sol
Line 61 in fcf35e5
These events can also transitively emit in the functions
PullPayment._asyncTransfer
andPullPayment.withdrawPayments
, because they callEscrow.deposit
andEscrow.withdraw
respectively.openzeppelin-contracts/contracts/security/PullPayment.sol
Line 68 in fcf35e5
openzeppelin-contracts/contracts/security/PullPayment.sol
Line 48 in fcf35e5
Could you please check it?
Thanks.
The text was updated successfully, but these errors were encountered: