diff --git a/contracts/SequencerSet.sol b/contracts/SequencerSet.sol index 362ca84..f7e3037 100644 --- a/contracts/SequencerSet.sol +++ b/contracts/SequencerSet.sol @@ -173,7 +173,7 @@ contract MetisSequencerSet is OwnableUpgradeable { } // check conditions - require(_newEpoch == curEpochId + 1, "Invalid epoch id"); + require(_newEpoch == curEpochId + 1, "Invalid new epoch number"); require( _endBlock > _startBlock, "End block must be greater than start block" diff --git a/ts-src/test/SequencerSet.ts b/ts-src/test/SequencerSet.ts index 651cb34..8df5bf0 100644 --- a/ts-src/test/SequencerSet.ts +++ b/ts-src/test/SequencerSet.ts @@ -150,7 +150,7 @@ describe("MetisSequencerSet", async () => { await expect( seqset.connect(mpc).commitEpoch(currentEpochNumber + 2n, 600, 799, seq1), - ).to.revertedWith("Invalid epoch id"); + ).to.revertedWith("Invalid new epoch number"); await expect( seqset.connect(mpc).commitEpoch(currentEpochNumber + 1n, 900, 799, seq1),