Make VestingWallet payable to allow funding at construction (#3665)

This commit is contained in:
Hadrien Croubois
2022-08-31 20:18:57 +02:00
committed by GitHub
parent affe2456ea
commit 4b8b92c8bf
2 changed files with 3 additions and 2 deletions

View File

@ -33,7 +33,7 @@ contract VestingWallet is Context {
address beneficiaryAddress,
uint64 startTimestamp,
uint64 durationSeconds
) {
) payable {
require(beneficiaryAddress != address(0), "VestingWallet: beneficiary is zero address");
_beneficiary = beneficiaryAddress;
_start = startTimestamp;