@@ -227,9 +227,9 @@ func (stub *MockStub) DeleteRow(tableName string, key []Column) error {
227
227
}
228
228
229
229
// Invokes a peered chaincode.
230
- // E.g. stub1.InvokeChaincode("stub2Hash", func, args )
230
+ // E.g. stub1.InvokeChaincode("stub2Hash", funcArgs )
231
231
// Before calling this make sure to create another MockStub stub2, call stub2.MockInit(uuid, func, args)
232
- // and register it with stub1 by calling stub1.MockPeerChaincode(
232
+ // and register it with stub1 by calling stub1.MockPeerChaincode("stub2Hash", stub2)
233
233
func (stub * MockStub ) InvokeChaincode (chaincodeName string , args [][]byte ) ([]byte , error ) {
234
234
// TODO "args" here should possibly be a serialized pb.ChaincodeInput
235
235
function , params := getFuncArgs (args )
@@ -249,10 +249,10 @@ func (stub *MockStub) QueryChaincode(chaincodeName string, args [][]byte) ([]byt
249
249
mockLogger .Error ("Could not find peer chaincode to query" , chaincodeName )
250
250
return nil , errors .New ("Could not find peer chaincode to query" )
251
251
}
252
- mockLogger .Debug ("MockStub" , stub .Name , "Invoking peer chaincode" , otherStub .Name , args )
252
+ mockLogger .Debug ("MockStub" , stub .Name , "Querying peer chaincode" , otherStub .Name , args )
253
253
function , params := getFuncArgs (args )
254
254
bytes , err := otherStub .MockQuery (function , params )
255
- mockLogger .Debug ("MockStub" , stub .Name , "Invoked peer chaincode" , otherStub .Name , "got" , bytes , err )
255
+ mockLogger .Debug ("MockStub" , stub .Name , "Queried peer chaincode" , otherStub .Name , "got" , bytes , err )
256
256
return bytes , err
257
257
}
258
258
0 commit comments