Skip to content

Commit 44ec44b

Browse files
authored
Merge pull request #18 from alephium/fix-checking-inputs
Fix checking tx inputs
2 parents 491a744 + fbd5da2 commit 44ec44b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Multisig/SignMultisigTx.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ async function getDecodedUnsignedTx(
273273
const unlockScript = decodedTx.unsignedTx.inputs[0].unlockScript
274274
const fromSameAddress = decodedTx.unsignedTx.inputs
275275
.slice(1)
276-
.every((i) => i.unlockScript === unlockScript)
276+
.every((i) => i.unlockScript === unlockScript || i.unlockScript === '03') // '03' is SameAsPrevious
277277
if (!fromSameAddress) {
278278
throw new Error(`Invalid unsigned tx, the input from different address`)
279279
}

0 commit comments

Comments
 (0)