Skip to content

Commit 487a964

Browse files
committed
variable names
1 parent ddc0d79 commit 487a964

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

contracts/tokens/SingularityNetToken.sol

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ import "zeppelin-solidity/contracts/token/BurnableToken.sol";
2323
*/
2424
contract SingularityNetToken is PausableToken, BurnableToken {
2525

26-
string public constant NAME = "SingularityNET Token";
27-
string public constant SYMBOL = "AGI";
28-
uint8 public constant DECIMALS = 8;
29-
uint256 public constant INITIAL_SUPPLY = 1000000000 * 10**uint256(DECIMALS);
30-
uint256 public constant PRIVATE_SUPPLY = 100000000 * 10**uint256(DECIMALS);
31-
uint256 public constant FOUNDER_SUPPLY = 500000000 * 10**uint256(DECIMALS);
32-
uint256 public constant PUBLIC_SUPPLY = 400000000 * 10**uint256(DECIMALS);
26+
string public constant name = "SingularityNET Token";
27+
string public constant symbol = "AGI";
28+
uint8 public constant decimals = 8;
29+
uint256 public constant INITIAL_SUPPLY = 1000000000 * 10**uint256(decimals);
30+
uint256 public constant PRIVATE_SUPPLY = 100000000 * 10**uint256(decimals);
31+
uint256 public constant FOUNDER_SUPPLY = 500000000 * 10**uint256(decimals);
32+
uint256 public constant PUBLIC_SUPPLY = 400000000 * 10**uint256(decimals);
3333

3434
/**
3535
* @dev SingularityNetToken Constructor

test/TestSingularityNetToken.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ contract('SingularityNetToken', (accounts) => {
1212
})
1313

1414
it('should have the name Singularity Network Token', async () => {
15-
assert.equal(await this.token.NAME.call(), 'SingularityNET Token', "Singularity Network Token wasn't the name")
15+
assert.equal(await this.token.name.call(), 'SingularityNET Token', "Singularity Network Token wasn't the name")
1616
})
1717

1818
it('should have the symbol AGI', async () => {
19-
assert.equal(await this.token.SYMBOL.call(), 'AGI', "AGI wasn't the symbol")
19+
assert.equal(await this.token.symbol.call(), 'AGI', "AGI wasn't the symbol")
2020
})
2121

2222
it('should have decimals set to 8', async () => {
23-
assert.equal(await this.token.DECIMALS.call(), 8, "8 wasn't the value of decimals")
23+
assert.equal(await this.token.decimals.call(), 8, "8 wasn't the value of decimals")
2424
})
2525

2626
it('should have INITIAL_SUPPLY set to 1e17 cogs', async () => {

0 commit comments

Comments
 (0)