Skip to content

Commit

Permalink
fix: disable brc-20 sends, ref leather-io/issues#5773
Browse files Browse the repository at this point in the history
  • Loading branch information
pete-watters committed Aug 26, 2024
1 parent 56d021b commit 38deafd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
3 changes: 2 additions & 1 deletion config/wallet-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,6 @@
},
"recoverUninscribedTaprootUtxosFeatureEnabled": true,
"runesEnabled": true,
"swapsEnabled": true
"swapsEnabled": true,
"brc20SendEnabled": false
}
4 changes: 4 additions & 0 deletions config/wallet-config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@
"swapsEnabled": {
"type": "boolean",
"description": "Determines whether or not the swaps feature is enabled"
},
"brc20SendEnabled": {
"type": "boolean",
"description": "Determines whether or not BRC-20 tokens can be sent"
}
},
"$defs": {
Expand Down
17 changes: 9 additions & 8 deletions src/app/features/asset-list/asset-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,15 @@ export function AssetList({ onSelectAsset, variant = 'read-only' }: AssetListPro
<BitcoinTaprootAccountLoader current>
{taprootAccount => (
<>
{whenWallet({
software: (
<Brc20TokensLoader>
{tokens => <Brc20TokenAssetList tokens={tokens} variant={variant} />}
</Brc20TokensLoader>
),
ledger: null,
})}
{isReadOnly &&
whenWallet({
software: (
<Brc20TokensLoader>
{tokens => <Brc20TokenAssetList tokens={tokens} variant={variant} />}
</Brc20TokensLoader>
),
ledger: null,
})}
{isReadOnly && (
<>
<Src20TokensLoader address={nativeSegwitAccount.address}>
Expand Down

0 comments on commit 38deafd

Please sign in to comment.