Skip to content

Commit ef96a0d

Browse files
author
Greg S
committed
#29: Fixed BlockchainStorageInfo model parameters order
1 parent 5c76924 commit ef96a0d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/model/blockchain/BlockchainStorageInfo.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,21 @@
2020
export class BlockchainStorageInfo {
2121

2222
/**
23-
* @param numAccounts
2423
* @param numBlocks
2524
* @param numTransactions
25+
* @param numAccounts
2626
*/
2727
constructor(/**
28-
* The number accounts published in the blockchain.
29-
*/
30-
public readonly numAccounts: number,
31-
/**
3228
* The number of confirmed blocks.
3329
*/
3430
public readonly numBlocks: number,
3531
/**
3632
* The number of confirmed transactions.
3733
*/
38-
public readonly numTransactions: number) {
34+
public readonly numTransactions: number,
35+
/**
36+
* The number accounts published in the blockchain.
37+
*/
38+
public readonly numAccounts: number) {
3939
}
4040
}

test/model/blockchain/BlockchainStorageInfo.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ describe('BlockchainStorageInfo', () => {
2121

2222
it('should createComplete an BlockchainStorageInfo object', () => {
2323
const blockchainStorageInfoDTO = {
24-
numAccounts: 10,
2524
numBlocks: 1,
2625
numTransactions: 100,
26+
numAccounts: 10,
2727
};
2828

2929
const blockchainScore = new BlockchainStorageInfo(
30-
blockchainStorageInfoDTO.numAccounts,
3130
blockchainStorageInfoDTO.numBlocks,
3231
blockchainStorageInfoDTO.numTransactions,
32+
blockchainStorageInfoDTO.numAccounts,
3333
);
3434

3535
expect(blockchainScore.numAccounts).to.be.equal(blockchainStorageInfoDTO.numAccounts);

0 commit comments

Comments
 (0)