added more comment consistancy fix

Signed-off-by: Ali Shahverdi <ali@Alis-MacBook-Pro.local>
This commit is contained in:
Ali Shahverdi 2022-10-24 15:37:54 +03:30
parent 615f2fe6f9
commit 1c1b7788e8
10 changed files with 37 additions and 37 deletions

View file

@ -121,7 +121,7 @@ async function initContractFromOrg1Identity() {
try { try {
// Create a new gateway for connecting to Org's peer node. // Create a new gateway for connecting to Org's peer node.
const gatewayOrg1 = new Gateway(); const gatewayOrg1 = new Gateway();
//connect using Discovery enabled // Connect using Discovery enabled
await gatewayOrg1.connect(ccpOrg1, await gatewayOrg1.connect(ccpOrg1,
{ wallet: walletOrg1, identity: Org1UserId, discovery: { enabled: true, asLocalhost: true } }); { wallet: walletOrg1, identity: Org1UserId, discovery: { enabled: true, asLocalhost: true } });

View file

@ -474,7 +474,7 @@ public final class AssetTransfer implements ContractInterface {
System.out.printf("Transfer Asset: collection %s, ID %s to owner %s\n", ASSET_COLLECTION_NAME, assetID, newOwner); System.out.printf("Transfer Asset: collection %s, ID %s to owner %s\n", ASSET_COLLECTION_NAME, assetID, newOwner);
stub.putPrivateData(ASSET_COLLECTION_NAME, assetID, thisAsset.serialize()); stub.putPrivateData(ASSET_COLLECTION_NAME, assetID, thisAsset.serialize());
// delete the key from owners collection // Delete the key from owners collection
String ownersCollectionName = getCollectionName(ctx); String ownersCollectionName = getCollectionName(ctx);
stub.delPrivateData(ownersCollectionName, assetID); stub.delPrivateData(ownersCollectionName, assetID);

View file

@ -134,7 +134,7 @@ export class AssetContract extends Contract {
sigsPolicies.push(signedBy); sigsPolicies.push(signedBy);
}); });
// create the policy such that it requires any N signature's from all of the principals provided // Create the policy such that it requires any N signature's from all of the principals provided
const allOf = { const allOf = {
n: nOrgs, n: nOrgs,
rules: sigsPolicies rules: sigsPolicies