mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-23 01:55:10 +00:00
added more comment consistancy fix
Signed-off-by: Ali Shahverdi <ali@Alis-MacBook-Pro.local>
This commit is contained in:
parent
9c586e07d8
commit
dd5696c41f
2 changed files with 3 additions and 3 deletions
|
|
@ -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 {
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue