Skip to content

Commit

Permalink
Fix checking tx inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Lbqds committed Jul 31, 2024
1 parent 491a744 commit fbd5da2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Multisig/SignMultisigTx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ async function getDecodedUnsignedTx(
const unlockScript = decodedTx.unsignedTx.inputs[0].unlockScript
const fromSameAddress = decodedTx.unsignedTx.inputs
.slice(1)
.every((i) => i.unlockScript === unlockScript)
.every((i) => i.unlockScript === unlockScript || i.unlockScript === '03') // '03' is SameAsPrevious
if (!fromSameAddress) {
throw new Error(`Invalid unsigned tx, the input from different address`)
}
Expand Down

0 comments on commit fbd5da2

Please sign in to comment.