pass bech32 hrp as override on address decode

This commit is contained in:
sneurlax 2024-01-11 12:14:53 -06:00
parent 46d454fad1
commit 52fbcdb5e1

View file

@ -76,7 +76,7 @@ abstract class Bip39HDCurrency extends Bip39Currency {
throw ArgumentError('Invalid version or Network mismatch');
} else {
try {
decodeBech32 = segwit.decode(address);
decodeBech32 = segwit.decode(address, networkParams.bech32Hrp);
} catch (err) {
// Bech32 decode fail
}