Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
Co-authored-by: Zied Guesmi <[email protected]>
  • Loading branch information
jeremyjams and zguesmi authored Jun 4, 2024
1 parent f35db58 commit 083711d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions contracts/VoucherHub.sol
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,7 @@ contract VoucherHub is
}

/**
* Top up a voucher by increasing its balance and extending the validity
* period before expiration.
* Top up a voucher by increasing its balance and pushing its expiration date.
* @param voucher The address of the voucher.
* @param value The amount of credits to top up.
*/
Expand Down
2 changes: 1 addition & 1 deletion test/beacon/Voucher.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ describe('Voucher', function () {
.not.equal(expirationBefore);
});

it('Should not set expiration', async function () {
it('Should not set expiration when sender is not authorized', async function () {
await expect(
voucherAsAnyone.setExpiration(789), // any expiration value is fine
).to.be.revertedWith('Voucher: sender is not VoucherHub');
Expand Down

0 comments on commit 083711d

Please sign in to comment.