Skip to content

Commit

Permalink
chore: show BRC-20 tokens on ledger, ref #5797
Browse files Browse the repository at this point in the history
  • Loading branch information
pete-watters committed Aug 27, 2024
1 parent a089d27 commit f5877cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
3 changes: 1 addition & 2 deletions config/wallet-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,5 @@
},
"recoverUninscribedTaprootUtxosFeatureEnabled": true,
"runesEnabled": true,
"swapsEnabled": true,
"brc20SendEnabled": false
"swapsEnabled": true
}
15 changes: 5 additions & 10 deletions src/app/features/asset-list/asset-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ interface AssetListProps {
variant?: AssetListVariant;
}
export function AssetList({ onSelectAsset, variant = 'read-only' }: AssetListProps) {
const { whenWallet } = useWalletType();
const currentAccount = useCurrentStacksAccount();
const isLedger = useHasLedgerKeys();

Expand Down Expand Up @@ -117,15 +116,11 @@ export function AssetList({ onSelectAsset, variant = 'read-only' }: AssetListPro
<BitcoinTaprootAccountLoader current>
{taprootAccount => (
<>
{isReadOnly &&
whenWallet({
software: (
<Brc20TokensLoader>
{tokens => <Brc20TokenAssetList tokens={tokens} variant={variant} />}
</Brc20TokensLoader>
),
ledger: null,
})}
{isReadOnly && (
<Brc20TokensLoader>
{tokens => <Brc20TokenAssetList tokens={tokens} variant={variant} />}
</Brc20TokensLoader>
)}
{isReadOnly && (
<>
<Src20TokensLoader address={nativeSegwitAccount.address}>
Expand Down

0 comments on commit f5877cd

Please sign in to comment.