Commit 2edc1a0c authored by Daisuke IIZUKA's avatar Daisuke IIZUKA Committed by Gari Singh
Browse files

[FAB-12081] Fix misspelling "Singed" to "Signed"



Fix misspelling of "Singed" to "Signed" in testutil method name.

Change-Id: Ib9239ae507af6a92620299411ba58adb955c920c
Signed-off-by: default avatarDaisuke IIZUKA <daisuke.iizuka.ag@hitachi.com>
parent c45c199a
......@@ -85,7 +85,7 @@ func ConstructTransaction(_ *testing.T, simulationResults []byte, txid string, s
var txEnv *common.Envelope
var err error
if sign {
txEnv, txID, err = ptestutils.ConstructSingedTxEnvWithDefaultSigner(util.GetTestChainID(), ccid, nil, simulationResults, txid, nil, nil)
txEnv, txID, err = ptestutils.ConstructSignedTxEnvWithDefaultSigner(util.GetTestChainID(), ccid, nil, simulationResults, txid, nil, nil)
} else {
txEnv, txID, err = ptestutils.ConstructUnsignedTxEnv(util.GetTestChainID(), ccid, nil, simulationResults, txid, nil, nil)
}
......
......@@ -71,14 +71,14 @@ func ConstructBytesProposalResponsePayload(chainID string, ccid *pb.ChaincodeID,
return presp.Payload, nil
}
// ConstructSingedTxEnvWithDefaultSigner constructs a transaction envelop for tests with a default signer.
// ConstructSignedTxEnvWithDefaultSigner constructs a transaction envelop for tests with a default signer.
// This method helps other modules to construct a transaction with supplied parameters
func ConstructSingedTxEnvWithDefaultSigner(chainID string, ccid *pb.ChaincodeID, response *pb.Response, simulationResults []byte, txid string, events []byte, visibility []byte) (*common.Envelope, string, error) {
return ConstructSingedTxEnv(chainID, ccid, response, simulationResults, txid, events, visibility, signer)
func ConstructSignedTxEnvWithDefaultSigner(chainID string, ccid *pb.ChaincodeID, response *pb.Response, simulationResults []byte, txid string, events []byte, visibility []byte) (*common.Envelope, string, error) {
return ConstructSignedTxEnv(chainID, ccid, response, simulationResults, txid, events, visibility, signer)
}
// ConstructSingedTxEnv constructs a transaction envelop for tests
func ConstructSingedTxEnv(chainID string, ccid *pb.ChaincodeID, pResponse *pb.Response, simulationResults []byte, txid string, events []byte, visibility []byte, signer msp.SigningIdentity) (*common.Envelope, string, error) {
// ConstructSignedTxEnv constructs a transaction envelop for tests
func ConstructSignedTxEnv(chainID string, ccid *pb.ChaincodeID, pResponse *pb.Response, simulationResults []byte, txid string, events []byte, visibility []byte, signer msp.SigningIdentity) (*common.Envelope, string, error) {
ss, err := signer.Serialize()
if err != nil {
return nil, "", err
......@@ -123,5 +123,5 @@ func ConstructUnsignedTxEnv(chainID string, ccid *pb.ChaincodeID, response *pb.R
sigId, _ = mspLcl.GetDefaultSigningIdentity()
}
return ConstructSingedTxEnv(chainID, ccid, response, simulationResults, txid, events, visibility, sigId)
return ConstructSignedTxEnv(chainID, ccid, response, simulationResults, txid, events, visibility, sigId)
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment