Skip to content

Commit

Permalink
fix: ife spend with wrong index
Browse files Browse the repository at this point in the history
This commit is the fix on the contract for input spend challenge
  • Loading branch information
boolafish committed Mar 4, 2020
1 parent 5a654fa commit 62b7d32
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ library PaymentChallengeIFEInputSpent {
GenericTransaction.Transaction memory challengingTx = GenericTransaction.decode(data.args.challengingTx);

GenericTransaction.Transaction memory inputTx = GenericTransaction.decode(data.args.inputTx);
GenericTransaction.Output memory output = GenericTransaction.getOutput(inputTx, data.args.challengingTxInputIndex);
PosLib.Position memory utxoPos = PosLib.decode(data.args.inputUtxoPos);
GenericTransaction.Output memory output = GenericTransaction.getOutput(inputTx, utxoPos.outputIndex);

ISpendingCondition condition = data.controller.spendingConditionRegistry.spendingConditions(
output.outputType, challengingTx.txType
Expand Down

0 comments on commit 62b7d32

Please sign in to comment.