Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 9e00af0

Browse files
authored
Preserve mockCreator during cross invoke (#67)
1 parent bfba2a6 commit 9e00af0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

testing/mockstub.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ func (stub *MockStub) InvokeChaincode(chaincodeName string, args [][]byte, chann
172172
ErrChaincodeNotExists, ccName, channel, chaincodeName, stub.MockedPeerChaincodes()))
173173
}
174174

175+
otherStub.mockCreator = stub.mockCreator
175176
res := otherStub.MockInvoke(stub.TxID, args)
176177
return res
177178
}

0 commit comments

Comments
 (0)