-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into dependabot/npm_and_yarn/packages/desktop/…
…electron-30.0.1
- Loading branch information
Showing
20 changed files
with
114 additions
and
140 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
"author": "Bloom Labs Ltd <[email protected]>", | ||
"license": "PolyForm Strict License 1.0.0", | ||
"dependencies": { | ||
"@bloomwalletio/ui": "0.20.21", | ||
"@bloomwalletio/ui": "0.20.22", | ||
"@ethereumjs/common": "4.3.0", | ||
"@ethereumjs/rlp": "5.0.2", | ||
"@ethereumjs/tx": "5.3.0", | ||
|
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
25 changes: 25 additions & 0 deletions
25
...red/src/lib/core/profile/actions/active-profile/checkAndInitializeActiveProfileNetwork.ts
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,25 @@ | ||
import { get } from 'svelte/store' | ||
import { localize } from '@core/i18n' | ||
import { getAndUpdateNodeInfo } from '@core/network/actions' | ||
import { activeProfile } from '@core/profile/stores' | ||
import { NetworkNamespace, initializeNetworks } from '@core/network' | ||
|
||
export async function checkAndInitializeActiveProfileNetwork(): Promise<void> { | ||
const $activeProfile = get(activeProfile) | ||
const existingNetwork = $activeProfile?.network | ||
const nodeInfoResponse = await getAndUpdateNodeInfo(true) | ||
if (!nodeInfoResponse) { | ||
throw new Error(localize('error.network.mismatch')) | ||
} | ||
|
||
const networkIdFromNode = `${NetworkNamespace.Stardust}:${nodeInfoResponse?.nodeInfo?.protocol.networkName}` | ||
if (existingNetwork?.id !== networkIdFromNode) { | ||
throw new Error(localize('error.network.mismatch', { networkId: networkIdFromNode })) | ||
} | ||
|
||
if (existingNetwork?.protocol.version !== nodeInfoResponse?.nodeInfo?.protocol.version) { | ||
throw new Error(localize('error.network.version.mismatch', { networkId: networkIdFromNode })) | ||
} | ||
|
||
initializeNetworks() | ||
} |
24 changes: 0 additions & 24 deletions
24
.../shared/src/lib/core/profile/actions/active-profile/checkAndUpdateActiveProfileNetwork.ts
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
packages/shared/src/lib/core/profile/actions/active-profile/index.ts
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.