Skip to content

Commit e6b6071

Browse files
committed
fix(network): populate ChaincodeInput.Args in fsc test proposal helper
fabric-smart-client v0.15.1's transaction.UnpackProposal now rejects a ChaincodeInvocationSpec with an empty Input.Args slice. The fsc endorsement tests' newValidProposalBytes helper built proposals with an empty ChaincodeInput, which proposalKey's replay-key extraction unpacks on every call, so every responder test in the package failed. Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
1 parent 9a3ff82 commit e6b6071

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

token/services/network/fabric/endorsement/fsc/responder_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func newValidProposalBytes(t *testing.T, txID string, creator, nonce []byte, tim
8585
cis := &pb.ChaincodeInvocationSpec{
8686
ChaincodeSpec: &pb.ChaincodeSpec{
8787
ChaincodeId: &pb.ChaincodeID{Name: "a_namespace", Version: "1.0"},
88-
Input: &pb.ChaincodeInput{},
88+
Input: &pb.ChaincodeInput{Args: [][]byte{[]byte("invoke")}},
8989
},
9090
}
9191
proposalPayload := &pb.ChaincodeProposalPayload{

0 commit comments

Comments
 (0)