Skip to content

Commit

Permalink
Adding more supported addresses to XEP network
Browse files Browse the repository at this point in the history
  • Loading branch information
sandrocsimas committed Dec 3, 2024
1 parent 0cbdfa0 commit 147ed34
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/src/models/network.dart
Original file line number Diff line number Diff line change
Expand Up @@ -543,9 +543,14 @@ class ElectraProtocolNetwork implements BasedUtxoNetwork {

@override
final List<BitcoinAddressType> supportedAddress = const [
PubKeyAddressType.p2pk,
P2pkhAddressType.p2pkh,
P2shAddressType.p2wpkhInP2sh,
SegwitAddresType.p2wpkh,
SegwitAddresType.p2wsh,
P2shAddressType.p2pkInP2sh,
P2shAddressType.p2pkhInP2sh,
P2shAddressType.p2wpkhInP2sh,
P2shAddressType.p2wshInP2sh,
];

@override
Expand All @@ -554,11 +559,13 @@ class ElectraProtocolNetwork implements BasedUtxoNetwork {
return [
Bip44Coins.electraProtocol,
Bip49Coins.electraProtocol,
Bip84Coins.electraProtocol,
];
}
return [
Bip44Coins.electraProtocolTestnet,
Bip49Coins.electraProtocolTestnet,
Bip84Coins.electraProtocolTestnet,
];
}
}

0 comments on commit 147ed34

Please sign in to comment.