@@ -47,9 +47,7 @@ func TestWallet(t *testing.T) {
4747}
4848
4949func TestVerifyIncompleteRequest (t * testing.T ) {
50- bc := fakechain .NewFakeChain ()
5150 notaryContractHash := nativehashes .Notary
52- _ , ntr , _ := getTestNotary (t , bc , "./testdata/notary1.json" , "one" )
5351 sig := append ([]byte {byte (opcode .PUSHDATA1 ), keys .SignatureLen }, make ([]byte , keys .SignatureLen )... ) // we're not interested in signature correctness
5452 acc1 , _ := keys .NewPrivateKey ()
5553 acc2 , _ := keys .NewPrivateKey ()
@@ -65,7 +63,7 @@ func TestVerifyIncompleteRequest(t *testing.T) {
6563 multisigScriptHash2 := hash .Hash160 (multisigScript2 )
6664
6765 checkErr := func (t * testing.T , tx * transaction.Transaction , nKeys uint8 ) {
68- witnessInfo , err := ntr . verifyIncompleteWitnesses (tx , nKeys )
66+ witnessInfo , err := verifyIncompleteWitnesses (tx , nKeys )
6967 require .Error (t , err )
7068 require .Nil (t , witnessInfo )
7169 }
@@ -475,7 +473,7 @@ func TestVerifyIncompleteRequest(t *testing.T) {
475473
476474 for name , testCase := range testCases {
477475 t .Run (name , func (t * testing.T ) {
478- actualInfo , err := ntr . verifyIncompleteWitnesses (testCase .tx , testCase .nKeys )
476+ actualInfo , err := verifyIncompleteWitnesses (testCase .tx , testCase .nKeys )
479477 require .NoError (t , err )
480478 require .Equal (t , len (testCase .expectedInfo ), len (actualInfo ))
481479 for i , expected := range testCase .expectedInfo {
0 commit comments