-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use chain name or domain as identifier instead of chainId (#136)
relates to: - hyperlane-xyz/hyperlane-warp-ui-template#313 - hyperlane-xyz/hyperlane-monorepo#4798 testing: - [x] update SDK to latest once monorepo PR is merged + rolled out - [x] add duplicate chain metadata with different domain id to custom yaml --------- Signed-off-by: pbio <[email protected]>
- Loading branch information
1 parent
ec0db73
commit b8e0d31
Showing
17 changed files
with
169 additions
and
181 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
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
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
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 |
---|---|---|
@@ -1,18 +1,7 @@ | ||
export function MissingChainConfigToast({ | ||
domainId, | ||
chainId, | ||
}: { | ||
domainId: number; | ||
chainId: number | string | null | undefined; | ||
}) { | ||
const errorDesc = chainId | ||
? `chain ID: ${chainId}` | ||
: domainId | ||
? `domain ID: ${domainId}` | ||
: 'unknown message chain'; | ||
export function MissingChainConfigToast({ domainId }: { domainId: number }) { | ||
return ( | ||
<div> | ||
<span>{`No chain config found for ${errorDesc}. You can add a config in the origin/destination chain selector.`}</span> | ||
<span>{`No chain config found for domain ${domainId}. You can add a config in the origin/destination chain selector.`}</span> | ||
</div> | ||
); | ||
} |
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
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
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
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
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
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
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
Oops, something went wrong.