mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-23 10:05:10 +00:00
added more comment consistancy fix
Signed-off-by: Ali Shahverdi <ali@Alis-MacBook-Pro.local>
This commit is contained in:
parent
1c1b7788e8
commit
9c586e07d8
11 changed files with 11 additions and 11 deletions
|
|
@ -48,7 +48,7 @@ func checkForHigherBid(ctx contractapi.TransactionContextInterface, auctionPrice
|
|||
|
||||
if _, bidInAuction := revealedBidders[bidKey]; bidInAuction {
|
||||
|
||||
//bid is already revealed, no action to take
|
||||
// bid is already revealed, no action to take
|
||||
|
||||
} else {
|
||||
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ func checkForHigherBid(ctx contractapi.TransactionContextInterface, auctionPrice
|
|||
|
||||
if _, bidInAuction := revealedBidders[bidKey]; bidInAuction {
|
||||
|
||||
//bid is already revealed, no action to take
|
||||
// bid is already revealed, no action to take
|
||||
|
||||
} else {
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ async function bid(ccp,wallet,user,orgMSP,auctionID,price) {
|
|||
try {
|
||||
|
||||
const gateway = new Gateway();
|
||||
//connect using Discovery enabled
|
||||
// Connect using Discovery enabled
|
||||
|
||||
await gateway.connect(ccp,
|
||||
{ wallet: wallet, identity: user, discovery: { enabled: true, asLocalhost: true } });
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ async function closeAuction(ccp,wallet,user,auctionID) {
|
|||
|
||||
const gateway = new Gateway();
|
||||
|
||||
//connect using Discovery enabled
|
||||
// Connect using Discovery enabled
|
||||
await gateway.connect(ccp,
|
||||
{ wallet: wallet, identity: user, discovery: { enabled: true, asLocalhost: true } });
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ async function createAuction(ccp,wallet,user,auctionID,item) {
|
|||
|
||||
const gateway = new Gateway();
|
||||
|
||||
//connect using Discovery enabled
|
||||
// Connect using Discovery enabled
|
||||
await gateway.connect(ccp,
|
||||
{ wallet: wallet, identity: user, discovery: { enabled: true, asLocalhost: true } });
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ async function endAuction(ccp,wallet,user,auctionID) {
|
|||
|
||||
const gateway = new Gateway();
|
||||
|
||||
//connect using Discovery enabled
|
||||
// Connect using Discovery enabled
|
||||
await gateway.connect(ccp,
|
||||
{ wallet: wallet, identity: user, discovery: { enabled: true, asLocalhost: true } });
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ async function queryAuction(ccp,wallet,user,auctionID) {
|
|||
|
||||
const gateway = new Gateway();
|
||||
|
||||
//connect using Discovery enabled
|
||||
// Connect using Discovery enabled
|
||||
await gateway.connect(ccp,
|
||||
{ wallet: wallet, identity: user, discovery: { enabled: true, asLocalhost: true } });
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ async function queryBid(ccp,wallet,user,auctionID,bidID) {
|
|||
|
||||
const gateway = new Gateway();
|
||||
|
||||
//connect using Discovery enabled
|
||||
// Connect using Discovery enabled
|
||||
await gateway.connect(ccp,
|
||||
{ wallet: wallet, identity: user, discovery: { enabled: true, asLocalhost: true } });
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ async function addBid(ccp,wallet,user,auctionID,bidID) {
|
|||
let bidString = await contract.evaluateTransaction('QueryBid',auctionID,bidID);
|
||||
let bidJSON = JSON.parse(bidString);
|
||||
|
||||
//console.log('\n--> Evaluate Transaction: query the auction you want to join');
|
||||
// console.log('\n--> Evaluate Transaction: query the auction you want to join');
|
||||
let auctionString = await contract.evaluateTransaction('QueryAuction',auctionID);
|
||||
// console.log('*** Result: Bid: ' + prettyJSONString(auctionString.toString()));
|
||||
let auctionJSON = JSON.parse(auctionString);
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ async function submitBid(ccp,wallet,user,auctionID,bidID) {
|
|||
|
||||
const gateway = new Gateway();
|
||||
|
||||
//connect using Discovery enabled
|
||||
// Connect using Discovery enabled
|
||||
await gateway.connect(ccp,
|
||||
{ wallet: wallet, identity: user, discovery: { enabled: true, asLocalhost: true } });
|
||||
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ func checkForHigherBid(ctx contractapi.TransactionContextInterface, auctionPrice
|
|||
|
||||
if _, bidInAuction := revealedBidders[bidKey]; bidInAuction {
|
||||
|
||||
//bid is already revealed, no action to take
|
||||
// bid is already revealed, no action to take
|
||||
|
||||
} else {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue