From d43939cc43444d9895ce22a6c149327977e295a6 Mon Sep 17 00:00:00 2001 From: Apotheosis <0xapotheosis@gmail.com> Date: Thu, 26 Sep 2024 18:28:10 +1000 Subject: [PATCH] fix: invalidate taproot addresses for sends (#7819) --- src/lib/address/address.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/address/address.ts b/src/lib/address/address.ts index 33808dcf356..72281228d20 100644 --- a/src/lib/address/address.ts +++ b/src/lib/address/address.ts @@ -252,6 +252,8 @@ type ValidateAddressReturn = boolean export type ValidateAddressByChainId = (args: ValidateAddressArgs) => Promise export const validateAddress: ValidateAddressByChainId = async ({ chainId, maybeAddress }) => { + // Invalidate taproot addresses for BTC + if (chainId === btcChainId && maybeAddress.startsWith('bc1p')) return false try { const adapter = getChainAdapterManager().get(chainId) if (!adapter) return false