Skip to content

Commit

Permalink
Merge pull request #285 from burz/burz/fix-require-error
Browse files Browse the repository at this point in the history
Fix spelling in require error message
  • Loading branch information
PierrickGT committed Dec 12, 2022
2 parents 324c71d + 223d36a commit 04e9dae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/Reserve.sol
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ contract Reserve is IReserve, Manageable {
override
returns (uint224)
{
require(_startTimestamp < _endTimestamp, "Reserve/start-less-then-end");
require(_startTimestamp < _endTimestamp, "Reserve/start-less-than-end");
uint24 _cardinality = cardinality;
uint24 _nextIndex = nextIndex;

Expand Down
2 changes: 1 addition & 1 deletion test/Reserve.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ describe('Reserve', () => {
await reserve.setObservationsAt([{ timestamp: 5, amount: 70 }]);

await expect(reserve.getReserveAccumulatedBetween(3, 2)).to.be.revertedWith(
'Reserve/start-less-then-end',
'Reserve/start-less-than-end',
);
});

Expand Down

0 comments on commit 04e9dae

Please sign in to comment.