Skip to content

Commit

Permalink
Fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lmuntaner committed Sep 26, 2024
1 parent 44cc098 commit 6ea4508
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/frontend/src/btc/derived/current-address.derived.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
BTC_MAINNET_TOKEN_ID,
BTC_REGTEST_TOKEN_ID,
BTC_TESTNET_TOKEN_ID
} from '$env/tokens.btc.env';
BTC_MAINNET_NETWORK_ID,
BTC_REGTEST_NETWORK_ID,
BTC_TESTNET_NETWORK_ID
} from '$env/networks.env';
import {
btcAddressMainnet,
btcAddressRegtest,
Expand All @@ -17,9 +17,9 @@ export const currentBtcAddress: Readable<OptionBtcAddress | undefined> = derived
[networkId, btcAddressMainnet, btcAddressTestnet, btcAddressRegtest],
([$networkId, $btcAddressMainnet, $btcAddressTestnet, $btcAddressRegtest]) => {
const mapper: Record<symbol, OptionBtcAddress> = {
[BTC_MAINNET_TOKEN_ID]: $btcAddressMainnet,
[BTC_TESTNET_TOKEN_ID]: $btcAddressTestnet,
[BTC_REGTEST_TOKEN_ID]: $btcAddressRegtest
[BTC_MAINNET_NETWORK_ID]: $btcAddressMainnet,
[BTC_TESTNET_NETWORK_ID]: $btcAddressTestnet,
[BTC_REGTEST_NETWORK_ID]: $btcAddressRegtest
};
if (nonNullish($networkId)) {
return mapper[$networkId];
Expand Down

0 comments on commit 6ea4508

Please sign in to comment.