Skip to content

Commit

Permalink
Merge "[FAB-6818] s/policyMarhsalled/policyMarshalled/"
Browse files Browse the repository at this point in the history
  • Loading branch information
kchristidis authored and Gerrit Code Review committed Nov 2, 2017
2 parents 2d4a96e + 8b3514f commit 6cf9558
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion peer/chaincode/chaincode.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ var (
policy string
escc string
vscc string
policyMarhsalled []byte
policyMarshalled []byte
orderingEndpoint string
tls bool
caFile string
Expand Down
2 changes: 1 addition & 1 deletion peer/chaincode/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func checkChaincodeCmdParams(cmd *cobra.Command) error {
if err != nil {
return fmt.Errorf("Invalid policy %s", policy)
}
policyMarhsalled = putils.MarshalOrPanic(p)
policyMarshalled = putils.MarshalOrPanic(p)
}

// Check that non-empty chaincode parameters contain only Args as a key.
Expand Down
2 changes: 1 addition & 1 deletion peer/chaincode/instantiate.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func instantiate(cmd *cobra.Command, cf *ChaincodeCmdFactory) (*protcommon.Envel
return nil, fmt.Errorf("Error serializing identity for %s: %s", cf.Signer.GetIdentifier(), err)
}

prop, _, err := utils.CreateDeployProposalFromCDS(chainID, cds, creator, policyMarhsalled, []byte(escc), []byte(vscc))
prop, _, err := utils.CreateDeployProposalFromCDS(chainID, cds, creator, policyMarshalled, []byte(escc), []byte(vscc))
if err != nil {
return nil, fmt.Errorf("Error creating proposal %s: %s", chainFuncName, err)
}
Expand Down
2 changes: 1 addition & 1 deletion peer/chaincode/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func upgrade(cmd *cobra.Command, cf *ChaincodeCmdFactory) (*protcommon.Envelope,
return nil, fmt.Errorf("Error serializing identity for %s: %s", cf.Signer.GetIdentifier(), err)
}

prop, _, err := utils.CreateUpgradeProposalFromCDS(chainID, cds, creator, policyMarhsalled, []byte(escc), []byte(vscc))
prop, _, err := utils.CreateUpgradeProposalFromCDS(chainID, cds, creator, policyMarshalled, []byte(escc), []byte(vscc))
if err != nil {
return nil, fmt.Errorf("Error creating proposal %s: %s", chainFuncName, err)
}
Expand Down

0 comments on commit 6cf9558

Please sign in to comment.