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:52:34 +03:30
parent 9c586e07d8
commit dd5696c41f
2 changed files with 3 additions and 3 deletions

View file

@ -33,7 +33,7 @@ import (
pb "github.com/hyperledger/fabric-protos-go/peer" 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 { type SmartContract struct {
} }

View file

@ -202,14 +202,14 @@ describe('Chaincode', () => {
describe('#Initialize', () => { describe('#Initialize', () => {
it('should work', async () => { 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, 'name', Buffer.from('some name'));
sinon.assert.calledWith(mockStub.putState, 'symbol', Buffer.from('some symbol')); sinon.assert.calledWith(mockStub.putState, 'symbol', Buffer.from('some symbol'));
sinon.assert.calledWith(mockStub.putState, 'decimals', Buffer.from('2')); sinon.assert.calledWith(mockStub.putState, 'decimals', Buffer.from('2'));
}); });
it('should failed if called a second time', async () => { 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')) 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'); .to.be.rejectedWith(Error, 'contract options are already set, client is not authorized to change them');
}); });