added feature availability info to documentation

This commit is contained in:
Francisco Giordano
2019-10-29 16:57:06 -03:00
parent 76a1d7a3cd
commit 9113335cb3
5 changed files with 16 additions and 0 deletions

View File

@ -48,6 +48,8 @@ contract PullPayment {
* WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities.
* Make sure you trust the recipient, or are either following the
* checks-effects-interactions pattern or using {ReentrancyGuard}.
*
* _Available since v2.4.0._
*/
function withdrawPaymentsWithGas(address payable payee) external {
_escrow.withdrawWithGas(payee);

View File

@ -68,6 +68,8 @@ contract Escrow is Secondary {
* WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities.
* Make sure you trust the recipient, or are either following the
* checks-effects-interactions pattern or using {ReentrancyGuard}.
*
* _Available since v2.4.0._
*/
function withdrawWithGas(address payable payee) public onlyPrimary {
uint256 payment = _deposits[payee];