Skip to content
Closed
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
ERC20VotesComp
  • Loading branch information
RenanSouza2 committed Apr 15, 2023
commit 9b13eb313b5a8d6b74e995b1078cc3c8b334aee4
4 changes: 2 additions & 2 deletions test/token/ERC20/extensions/ERC20VotesComp.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ contract('ERC20VotesComp', function (accounts) {

describe('getPriorVotes', function () {
it('reverts if block number >= current block', async function () {
await expectRevert(this.token.getPriorVotes(other1, 5e10), 'Checkpoints: block not yet mined');
await expectRevert(this.token.getPriorVotes(other1, 5e10), 'Votes: block not yet mined');
});

it('returns 0 if there are no checkpoints', async function () {
Expand Down Expand Up @@ -470,7 +470,7 @@ contract('ERC20VotesComp', function (accounts) {
});

it('reverts if block number >= current block', async function () {
await expectRevert(this.token.getPastTotalSupply(5e10), 'Checkpoints: block not yet mined');
await expectRevert(this.token.getPastTotalSupply(5e10), 'Votes: block not yet mined');
});

it('returns 0 if there are no checkpoints', async function () {
Expand Down