fromScript->fromRedeemScript

This commit is contained in:
sneurlax 2024-03-22 16:19:57 -05:00 committed by julian
parent b50985aec7
commit 3b0fb69339
3 changed files with 3 additions and 3 deletions

View file

@ -146,7 +146,7 @@ class Bitcoin extends Bip39HDCurrency with PaynymCurrencyInterface {
hrp: networkParams.bech32Hrp,
).program.script;
final addr = coinlib.P2SHAddress.fromScript(
final addr = coinlib.P2SHAddress.fromRedeemScript(
p2wpkhScript,
version: networkParams.p2shPrefix,
);

View file

@ -146,7 +146,7 @@ class Litecoin extends Bip39HDCurrency {
hrp: networkParams.bech32Hrp,
).program.script;
final addr = coinlib.P2SHAddress.fromScript(
final addr = coinlib.P2SHAddress.fromRedeemScript(
p2wpkhScript,
version: networkParams.p2shPrefix,
);

View file

@ -121,7 +121,7 @@ class Namecoin extends Bip39HDCurrency {
hrp: networkParams.bech32Hrp,
).program.script;
final addr = coinlib.P2SHAddress.fromScript(
final addr = coinlib.P2SHAddress.fromRedeemScript(
p2wpkhScript,
version: networkParams.p2shPrefix,
);