-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(frontend): sol network derived #4001
Conversation
…to feat(frontend)/sol-addresses
# Conflicts: # src/frontend/src/tests/lib/api/idb.api.spec.ts
- move method from sol-balance.services.ts to sol-address.services.ts
…ived' into feat(frontend)/sol-addresses-derived
…dresses-derived-2 # Conflicts: # src/frontend/src/sol/services/sol-address.services.ts # src/frontend/src/sol/types/network.ts # src/frontend/src/tests/sol/services/sol-address.services.spec.ts
…ding' into feat(frontend)/sol-addresses-loading # Conflicts: # src/frontend/src/tests/lib/components/guard/AddressGuard.spec.ts
needs #4000 to be in first |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comments, approving already.
debounceLoadSolAddressDevnet(); | ||
} | ||
} | ||
|
||
if (LOCAL) { | ||
debounceLoadBtcAddressRegtest(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like, we forgot to check isNullish($btcAddressRegtest)
here. Can you please add it? 😇
@@ -37,6 +44,21 @@ export const isNetworkIdBTCRegtest = (networkId: NetworkId | undefined): boolean | |||
export const isNetworkIdSepolia = (networkId: NetworkId | undefined): boolean => | |||
SEPOLIA_NETWORK_ID === networkId; | |||
|
|||
export const isNetworkIdSolana = (networkId: NetworkId | undefined): boolean => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not necessarily for this PR, but I feel like having some common type IsNetworkIdUtil = (networkId: NetworkId | undefined): boolean
is long overdue 🙈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will follow up with a PR
Motivation
Add SOL to network utils to be able to make conditional rendering of components in the application.
Changes
Tests