mirror of
https://github.com/Qortal/piratewallet-light-cli.git
synced 2025-02-01 03:12:15 +00:00
Fixed bug causing P2SH address to be treated as a P2PKH
This commit is contained in:
parent
7381ba6a91
commit
73ba2d8b1f
@ -2890,7 +2890,7 @@ impl LightWallet {
|
||||
|
||||
let p2sh_addr_vec = from.from_base58().unwrap();
|
||||
let p2sh_addr_arr = <[u8; 20]>::try_from(&p2sh_addr_vec[2..22]).unwrap();
|
||||
let p2sh_script_pubkey = TransparentAddress::PublicKey(p2sh_addr_arr).script();
|
||||
let p2sh_script_pubkey = TransparentAddress::Script(p2sh_addr_arr).script();
|
||||
|
||||
let outpoint: OutPoint = OutPoint {
|
||||
hash: <[u8; 32]>::try_from(outpoint_txid).unwrap(),
|
||||
|
Loading…
Reference in New Issue
Block a user