fix: p2sh addr (#1607)

This commit is contained in:
Rafael 2024-08-14 20:40:40 -03:00 committed by GitHub
parent 183f9c191d
commit d96bab43c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,7 +23,7 @@ String generateP2SHAddress({
required int index,
}) =>
ECPublic.fromBip32(hd.childKey(Bip32KeyIndex(index)).publicKey)
.toP2wshInP2sh()
.toP2wpkhInP2sh()
.toAddress(network);
String generateP2WSHAddress({