Skip to content

Commit

Permalink
fix error message grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmetson committed Nov 29, 2023
1 parent 1968418 commit a87f5b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/hardhat/contracts/Registrar.sol
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ contract Registrar is Ownable {

constructor(uint256[] memory chainIds, ChainlinkParam[] memory chainlinkParams) {
require(chainIds.length == chainlinkParams.length, "invalid length");
require(chainIds.length >= 2, "atleast two chains required");
require(chainIds.length >= 2, "at least two chains required");

for (uint64 i = 0; i < chainIds.length; i++) {
require(chainIds[i] > 0, "null");
require(chainlinkParams[i].router != address(0), "empty address");
require(chainlinkParams[i].selector > 0, "empty selecter");
require(chainlinkParams[i].selector > 0, "empty selector");

require(chainlinkParams[i].router == address(0), "duplicate network");

Expand Down

0 comments on commit a87f5b3

Please sign in to comment.