From dd5696c41f8ac56e53a5502876e801cc9d8b4e18 Mon Sep 17 00:00:00 2001 From: Ali Shahverdi Date: Mon, 24 Oct 2022 15:52:34 +0330 Subject: [PATCH] added more comment consistancy fix Signed-off-by: Ali Shahverdi --- high-throughput/chaincode-go/high-throughput.go | 2 +- token-erc-20/chaincode-javascript/test/tokenERC20.test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/high-throughput/chaincode-go/high-throughput.go b/high-throughput/chaincode-go/high-throughput.go index cee451a7..3651d716 100644 --- a/high-throughput/chaincode-go/high-throughput.go +++ b/high-throughput/chaincode-go/high-throughput.go @@ -33,7 +33,7 @@ import ( pb "github.com/hyperledger/fabric-protos-go/peer" ) -//SmartContract is the data structure which represents this contract and on which various contract lifecycle functions are attached +// SmartContract is the data structure which represents this contract and on which various contract lifecycle functions are attached type SmartContract struct { } diff --git a/token-erc-20/chaincode-javascript/test/tokenERC20.test.js b/token-erc-20/chaincode-javascript/test/tokenERC20.test.js index 003c8ab1..133babb2 100644 --- a/token-erc-20/chaincode-javascript/test/tokenERC20.test.js +++ b/token-erc-20/chaincode-javascript/test/tokenERC20.test.js @@ -202,14 +202,14 @@ describe('Chaincode', () => { describe('#Initialize', () => { it('should work', async () => { - //we consider it has already been initialized in the before-each statement + // We consider it has already been initialized in the before-each statement sinon.assert.calledWith(mockStub.putState, 'name', Buffer.from('some name')); sinon.assert.calledWith(mockStub.putState, 'symbol', Buffer.from('some symbol')); sinon.assert.calledWith(mockStub.putState, 'decimals', Buffer.from('2')); }); it('should failed if called a second time', async () => { - //we consider it has already been initialized in the before-each statement + // We consider it has already been initialized in the before-each statement await expect(await token.Initialize(ctx, 'some name', 'some symbol', '2')) .to.be.rejectedWith(Error, 'contract options are already set, client is not authorized to change them'); });