Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Ernesto García <[email protected]>
  • Loading branch information
Amxx and ernestognw authored Feb 9, 2024
commit a5d1a08a7fa03f4bd1bc9da69dc91123d42f8dd2
2 changes: 1 addition & 1 deletion .changeset/wise-bobcats-speak.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'openzeppelin-solidity': minor
---

`VestinWalletWithCliff`: Add a extension of the `VestingWallet` contract with an added cliff.
`VestinWalletWithCliff`: Add an extension of the `VestingWallet` contract with an added cliff.
3 changes: 2 additions & 1 deletion contracts/finance/VestingWalletWithCliff.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ import {VestingWallet} from "./VestingWallet.sol";
/**
* @dev Extension of {VestingWallet} that adds a cliff to the vesting schedule.
*/
abstract contract VestingWalletWithCliff is VestingWallet {
abstract contract VestingWalletCliff is VestingWallet {
using SafeCast for *;

uint64 private immutable _cliff;

/// @dev The specified cliff duration is larger than the vesting duration.
error InvalidCliffDuration(uint64 cliffSeconds, uint64 durationSeconds);

/**
Expand Down
2 changes: 1 addition & 1 deletion test/finance/VestingWalletWithCliff.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ describe('VestingWallet', function () {
Object.assign(this, await loadFixture(fixture));
});

it('rejects zero address for beneficiary', async function () {
it('rejects a larger cliff than vesting duration', async function () {
await expect(
ethers.deployContract('$VestingWalletWithCliff', [
this.beneficiary,
Expand Down