Skip to content

Commit 1896c7f

Browse files
committed
taproot address null error fix
1 parent d642b8f commit 1896c7f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/wallets/crypto_currency/coins/bitcoin_frost.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ class BitcoinFrost extends FrostCurrency {
255255
final clAddress = cl.Address.fromString(address, networkParams);
256256

257257
return switch (clAddress) {
258+
cl.P2TRAddress() => AddressType.p2tr,
258259
cl.P2PKHAddress() => AddressType.p2pkh,
259260
cl.P2WSHAddress() => AddressType.p2sh,
260261
cl.P2WPKHAddress() => AddressType.p2wpkh,

lib/wallets/crypto_currency/interfaces/electrumx_currency_interface.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ mixin ElectrumXCurrencyInterface on Bip39HDCurrency {
1818
cl.P2PKHAddress() => AddressType.p2pkh,
1919
cl.P2WSHAddress() => AddressType.p2sh,
2020
cl.P2WPKHAddress() => AddressType.p2wpkh,
21+
cl.P2TRAddress() => AddressType.p2tr,
2122
cl.MwebAddress() => AddressType.mweb,
2223
_ => null,
2324
};

0 commit comments

Comments
 (0)