From 38deafda71cc4fd28f5985d3dbca93863a3643c7 Mon Sep 17 00:00:00 2001 From: Pete Watters <2938440+pete-watters@users.noreply.github.com> Date: Thu, 22 Aug 2024 14:11:36 +0100 Subject: [PATCH] fix: disable brc-20 sends, ref leather-io/issues#5773 --- config/wallet-config.json | 3 ++- config/wallet-config.schema.json | 4 ++++ src/app/features/asset-list/asset-list.tsx | 17 +++++++++-------- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/config/wallet-config.json b/config/wallet-config.json index e04bdddd932..4d767edb9c2 100644 --- a/config/wallet-config.json +++ b/config/wallet-config.json @@ -91,5 +91,6 @@ }, "recoverUninscribedTaprootUtxosFeatureEnabled": true, "runesEnabled": true, - "swapsEnabled": true + "swapsEnabled": true, + "brc20SendEnabled": false } diff --git a/config/wallet-config.schema.json b/config/wallet-config.schema.json index 4746578f4ff..fd70b758ff7 100644 --- a/config/wallet-config.schema.json +++ b/config/wallet-config.schema.json @@ -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": { diff --git a/src/app/features/asset-list/asset-list.tsx b/src/app/features/asset-list/asset-list.tsx index af165f777ec..ec2a933164f 100644 --- a/src/app/features/asset-list/asset-list.tsx +++ b/src/app/features/asset-list/asset-list.tsx @@ -117,14 +117,15 @@ export function AssetList({ onSelectAsset, variant = 'read-only' }: AssetListPro {taprootAccount => ( <> - {whenWallet({ - software: ( - - {tokens => } - - ), - ledger: null, - })} + {isReadOnly && + whenWallet({ + software: ( + + {tokens => } + + ), + ledger: null, + })} {isReadOnly && ( <>