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'); });