File tree 1 file changed +9
-3
lines changed 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -651,10 +651,16 @@ describe('Wallet', function() {
651
651
var fee = 30000
652
652
sinon . spy ( TransactionBuilder . prototype , "sign" )
653
653
654
- var tx = wallet . createTx ( to , value , { fixedFee : fee } )
654
+ wallet . createTx ( to , value , { fixedFee : fee } )
655
+
656
+ var priv1 = wallet . getPrivateKeyForAddress ( address1 )
657
+ var priv2 = wallet . getPrivateKeyForAddress ( address2 )
658
+
659
+ // FIXME: boo (required) side effects
660
+ priv1 . pub . Q . affineX , priv2 . pub . Q . affineX
655
661
656
- assert ( TransactionBuilder . prototype . sign . calledWith ( 0 , wallet . getPrivateKeyForAddress ( address2 ) ) )
657
- assert ( TransactionBuilder . prototype . sign . calledWith ( 1 , wallet . getPrivateKeyForAddress ( address1 ) ) )
662
+ assert ( TransactionBuilder . prototype . sign . calledWith ( 0 , priv2 ) )
663
+ assert ( TransactionBuilder . prototype . sign . calledWith ( 1 , priv1 ) )
658
664
} )
659
665
} )
660
666
You can’t perform that action at this time.
0 commit comments