mirror of
https://github.com/zhigang1992/wallet.git
synced 2026-04-29 05:05:32 +08:00
refactor: psbt uxui, closes #3849
This commit is contained in:
@@ -84,6 +84,7 @@ function buildTestNativeSegwitPsbtRequestWithIndexes(pubKey: Uint8Array): PsbtRe
|
||||
tx.addInput({
|
||||
index: 0,
|
||||
txid: '5be910a6557bae29b8ff2dbf4607dbf783eaf82802896d13f61d975c133ccce7',
|
||||
sighashType: 1,
|
||||
witnessUtxo: {
|
||||
amount: BigInt(1268294),
|
||||
script: p2wpkh.script,
|
||||
@@ -104,7 +105,7 @@ function buildTestNativeSegwitPsbtRequestWithIndexes(pubKey: Uint8Array): PsbtRe
|
||||
|
||||
const psbt = tx.toPSBT();
|
||||
|
||||
return { signAtIndex: [0, 1], hex: bytesToHex(psbt) };
|
||||
return { signAtIndex: [0, 1], hex: bytesToHex(psbt), allowedSighash: [2] };
|
||||
}
|
||||
|
||||
function buildTestTaprootPsbtRequest(pubKey: Uint8Array): PsbtRequestOptions {
|
||||
|
||||
Reference in New Issue
Block a user