Improve some NatSpec and revert reasons (#3809)

Co-authored-by: JulissaDantes <julissadcj@gmail.com>
This commit is contained in:
Francisco
2022-11-25 12:55:16 -03:00
committed by GitHub
parent 8c9a831596
commit 8f8fd84f1e
6 changed files with 43 additions and 15 deletions

View File

@ -151,7 +151,7 @@ contract('Checkpoints', function (accounts) {
});
it('cannot push values in the past', async function () {
await expectRevert(this.contract.push(last(this.checkpoints).key - 1, '0'), 'Checkpoint: invalid key');
await expectRevert(this.contract.push(last(this.checkpoints).key - 1, '0'), 'Checkpoint: decreasing keys');
});
it('can update last value', async function () {