Skip to content

Commit

Permalink
add one test for signTxIn
Browse files Browse the repository at this point in the history
  • Loading branch information
fluency03 committed Apr 27, 2018
1 parent 658718f commit 4a6256f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ class TransactionTest extends FlatSpec with Matchers {
val signedTxIn0 = signTxIn(hash, txIn, pair, uTxOs)
signedTxIn0 shouldEqual None

uTxOs += (Outpoint("def0", 0) -> TxOut("0000", 40))
val signedTxIn1 = signTxIn(hash, txIn, pair, uTxOs)
signedTxIn1 shouldEqual None

uTxOs += (Outpoint("def0", 0) -> TxOut(pair.getPublic.toHex, 40))
uTxOs += (Outpoint("def0", 1) -> TxOut("abc4", 40))

Expand Down

0 comments on commit 4a6256f

Please sign in to comment.