Skip to content

Commit

Permalink
refactored schellingcoin testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
adi44 committed May 31, 2021
1 parent 873aaff commit cb71955
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions migrations/src/postDeploymentSetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module.exports = async () => {

const initialSupply = await schellingCoin.INITIAL_SUPPLY();

const stakeManagerSupply = (BigNumber.from(10).pow(BigNumber.from(26))).mul(BigNumber.from(6));
const mintableSupply = (BigNumber.from(10).pow(BigNumber.from(26))).mul(BigNumber.from(6));
const deployerBalance = BigNumber.from(await schellingCoin.balanceOf(signers[0].address));
const deployerSupply = BigNumber.from(initialSupply).sub(BigNumber.from(deployerBalance));

Expand All @@ -62,7 +62,7 @@ module.exports = async () => {
// Remove previous instance of Deployer address from Minter
await schellingCoin.removeMinter(signers[0].address);
}
await schellingCoin.transfer(stakeManagerAddress, stakeManagerSupply);
await schellingCoin.transfer(stakeManagerAddress, mintableSupply);

for (let i = 0; i < stakerAddressList.length; i++) {
const tx = await schellingCoin.transfer(stakerAddressList[i], SEED_AMOUNT);
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/testSetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const setupContracts = async () => {
const stakeManager = await StakeManager.deploy(BLOCK_REWARD.toHexString());
const stateManager = await StateManager.deploy();
const voteManager = await VoteManager.deploy();
const schellingCoin = await SchellingCoin.deploy(stakeManager.address);
const schellingCoin = await SchellingCoin.deploy();
const faucet = await Faucet.deploy(schellingCoin.address);

await blockManager.deployed();
Expand Down

0 comments on commit cb71955

Please sign in to comment.