-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🪚 Add ability to list all hardhat networks (#189)
- Loading branch information
1 parent
9e3dc4d
commit fe1542e
Showing
4 changed files
with
157 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@layerzerolabs/devtools-evm-hardhat": patch | ||
--- | ||
|
||
Add getEidsByNetworkName utility |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
packages/devtools-evm-hardhat/test/__snapshots__/runtime.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`runtime getEidsByNetworkName should throw if there are more networks defined with the same eid 1`] = ` | ||
"Found multiple networks configured with the same 'eid': | ||
- one, two, three have eid set to APTOS_MAINNET | ||
- four, five have eid set to BASE_TESTNET | ||
Please fix this in your hardhat config." | ||
`; | ||
|
||
exports[`runtime getNetworkNameForEid should throw if there are more networks defined with the same eid 1`] = ` | ||
"Found multiple networks configured with the same 'eid': | ||
- one, two, three have eid set to APTOS_MAINNET | ||
Please fix this in your hardhat config." | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters