We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2969dbf commit 82244b7Copy full SHA for 82244b7
test/generic_address_test.dart
@@ -21,6 +21,13 @@ void main() {
21
expect(address.toString(), 'p77CZFn9jvg9waCzKBzkQfSvBBzPH1nRre');
22
});
23
24
+ test('fromASM - P2WPKH', () {
25
+ const asm = '0 2ea1d5637bf5b26fc442df1adca762ddd0479b45';
26
+ final address = GenericAddress.fromAsm(asm, Network.mainnet);
27
+ expect(address is P2WPKHAddress, true);
28
+ expect(address.toString(), 'pc1q96sa2cmm7kexl3zzmuddefmzmhgy0x69pnp2wv');
29
+ });
30
+
31
test('fromAsm - Unknown program type', () {
32
const asm = 'OP_RETURN';
33
expect(
@@ -29,6 +36,6 @@ void main() {
36
);
37
38
- //TODO - Implement P2WPKH, P2WSH and P2TR
39
+ //TODO - Implement P2WSH and P2TR
40
34
41
}
0 commit comments