Skip to content

Commit 899e2eb

Browse files
committed
refactor: remove unused error descriptor
1 parent 8b53997 commit 899e2eb

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

v-next/hardhat-errors/src/descriptors.ts

+4-12
Original file line numberDiff line numberDiff line change
@@ -483,32 +483,24 @@ Please check Hardhat's output for more details.`,
483483
484484
Please check that you are sending a valid URL string for the network or forking \`URL\` parameter.`,
485485
},
486-
INVALID_REQUEST_METHOD: {
487-
number: 701,
488-
messageTemplate:
489-
"Invalid request arguments: the 'method' argument must be a string.",
490-
websiteTitle: "Invalid method parameters",
491-
websiteDescription:
492-
"The JSON-RPC request method argument is invalid. The 'method' argument must be a string representing the name of the method to be invoked. Ensure that the 'method' parameter is correctly specified as a string in your JSON-RPC request.",
493-
},
494486
INVALID_REQUEST_PARAMS: {
495-
number: 702,
487+
number: 701,
496488
messageTemplate:
497489
"Invalid request arguments: only array parameters are supported.",
498490
websiteTitle: "Invalid method parameters",
499491
websiteDescription:
500492
"The JSON-RPC request parameters are invalid. You are trying to make an EIP-1193 request with object parameters, but only array parameters are supported. Ensure that the 'params' parameter is correctly specified as an array in your JSON-RPC request.",
501493
},
502494
INVALID_JSON_RESPONSE: {
503-
number: 703,
495+
number: 702,
504496
messageTemplate: "Invalid JSON-RPC response received: {response}",
505497
websiteTitle: "Invalid JSON-RPC response",
506498
websiteDescription: `One of your JSON-RPC requests received an invalid response.
507499
508500
Please make sure your node is running, and check your internet connection and networks config.`,
509501
},
510502
CONNECTION_REFUSED: {
511-
number: 704,
503+
number: 703,
512504
messageTemplate: `Cannot connect to the network {network}.
513505
Please make sure your node is running, and check your internet connection and networks config`,
514506
websiteTitle: "Cannot connect to the network",
@@ -517,7 +509,7 @@ Please make sure your node is running, and check your internet connection and ne
517509
Please make sure your node is running, and check your internet connection and networks config.`,
518510
},
519511
NETWORK_TIMEOUT: {
520-
number: 705,
512+
number: 704,
521513
messageTemplate: `Network connection timed out.
522514
Please check your internet connection and networks config`,
523515
websiteTitle: "Network timeout",

0 commit comments

Comments
 (0)