Skip to content

Commit

Permalink
fix: update the error numbers
Browse files Browse the repository at this point in the history
A copy and paste error missed a few on dealing with a merge.
  • Loading branch information
kanej committed Feb 6, 2025
1 parent 879a45a commit d6150c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions v-next/hardhat-errors/src/descriptors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1571,7 +1571,7 @@ Please use the fully qualified name of the contract to disambiguate it.`,
"Hardhat Ignition was unable to display an unknown transaction type",
},
PARAMETER_EXCEEDS_MAXIMUM_SAFE_INTEGER: {
number: 1609,
number: 1709,
messageTemplate: `Parameter "{parameter}" exceeds maximum safe integer size. Encode the value as a string using bigint notation: \`{value}n\``,
websiteTitle: "Parameter exceeds maximum safe integer size",
websiteDescription: "Parameter exceeds maximum safe integer size",
Expand Down Expand Up @@ -1611,13 +1611,13 @@ Please use the fully qualified name of the contract to disambiguate it.`,
"Ignition modules must be located within the module directory.",
},
VIEM_TEST_HELPER_ERROR: {
number: 1615,
number: 1715,
messageTemplate: `Hardhat Ignition Viem Test Error: {message}`,
websiteTitle: "Test error in Hardhat Ignition Viem's test helper",
websiteDescription: "Test error in Hardhat Ignition Viem's test helper.",
},
ARTIFACT_PATH_NOT_FOUND: {
number: 1616,
number: 1716,
messageTemplate: `Artifact path not found for {contractName}`,
websiteTitle:
"Hardhat Ignition unable to find artifact path for the contract name",
Expand Down
2 changes: 1 addition & 1 deletion v-next/hardhat-ignition/test/utils/bigintReviver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe("bigintReviver", function () {
it("should throw if a number is bigger than Number.MAX_SAFE_INTEGER", function () {
assert.throws(() => {
JSON.parse('{"a":9007199254740992}', bigintReviver);
}, `HHE1609: Parameter "a" exceeds maximum safe integer size. Encode the value as a string using bigint notation: \`9007199254740992n\``);
}, `HHE1709: Parameter "a" exceeds maximum safe integer size. Encode the value as a string using bigint notation: \`9007199254740992n\``);
});

it("should not convert regular numbers", function () {
Expand Down

0 comments on commit d6150c4

Please sign in to comment.