Improve some NatSpec and revert reasons (#3809)
Co-authored-by: JulissaDantes <julissadcj@gmail.com>
This commit is contained in:
@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user