Skip to content

Commit 058c313

Browse files
committedSep 20, 2017
[FAB-6240] Fix typos in function names
Fix misspelling fuction names in txtestutils.go Change-Id: I3bf50437153b01a2656614ba2dec25f8e1da2836 Signed-off-by: Boliang Chen <cblsjtu@gmail.com>
1 parent 5e0727c commit 058c313

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed
 

‎common/ledger/testutil/test_helper.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func ConstructTransaction(_ *testing.T, simulationResults []byte, txid string, s
9696
if sign {
9797
txEnv, txID, err = ptestutils.ConstructSingedTxEnvWithDefaultSigner(util.GetTestChainID(), ccid, nil, simulationResults, txid, nil, nil)
9898
} else {
99-
txEnv, txID, err = ptestutils.ConstructUnsingedTxEnv(util.GetTestChainID(), ccid, nil, simulationResults, txid, nil, nil)
99+
txEnv, txID, err = ptestutils.ConstructUnsignedTxEnv(util.GetTestChainID(), ccid, nil, simulationResults, txid, nil, nil)
100100
}
101101
return txEnv, txID, err
102102
}
@@ -152,7 +152,7 @@ func ConstructBytesProposalResponsePayload(version string, simulationResults []b
152152
Name: "foo",
153153
Version: version,
154154
}
155-
return ptestutils.ConstractBytesProposalResponsePayload(util.GetTestChainID(), ccid, nil, simulationResults)
155+
return ptestutils.ConstructBytesProposalResponsePayload(util.GetTestChainID(), ccid, nil, simulationResults)
156156
}
157157

158158
func newBlock(env []*common.Envelope, blockNum uint64, previousHash []byte) *common.Block {

‎protos/testutils/txtestutils.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ func init() {
5151
}
5252
}
5353

54-
// ConstractBytesProposalResponsePayload constructs a ProposalResponsePayload byte for tests with a default signer.
55-
func ConstractBytesProposalResponsePayload(chainID string, ccid *pb.ChaincodeID, pResponse *pb.Response, simulationResults []byte) ([]byte, error) {
54+
// ConstructBytesProposalResponsePayload constructs a ProposalResponsePayload byte for tests with a default signer.
55+
func ConstructBytesProposalResponsePayload(chainID string, ccid *pb.ChaincodeID, pResponse *pb.Response, simulationResults []byte) ([]byte, error) {
5656
ss, err := signer.Serialize()
5757
if err != nil {
5858
return nil, err
@@ -116,8 +116,8 @@ func ConstructSingedTxEnv(chainID string, ccid *pb.ChaincodeID, pResponse *pb.Re
116116
var mspLcl msp.MSP
117117
var sigId msp.SigningIdentity
118118

119-
// ConstructUnsingedTxEnv creates a Transaction envelope from given inputs
120-
func ConstructUnsingedTxEnv(chainID string, ccid *pb.ChaincodeID, response *pb.Response, simulationResults []byte, txid string, events []byte, visibility []byte) (*common.Envelope, string, error) {
119+
// ConstructUnsignedTxEnv creates a Transaction envelope from given inputs
120+
func ConstructUnsignedTxEnv(chainID string, ccid *pb.ChaincodeID, response *pb.Response, simulationResults []byte, txid string, events []byte, visibility []byte) (*common.Envelope, string, error) {
121121
if mspLcl == nil {
122122
mspLcl = mmsp.NewNoopMsp()
123123
sigId, _ = mspLcl.GetDefaultSigningIdentity()

0 commit comments

Comments
 (0)
Please sign in to comment.