From afad0e49ece26d5316f68b1d93786c87bdd75e43 Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Thu, 4 Nov 2021 11:32:21 +0100 Subject: [PATCH] Mint test tokens for both client and host --- contracts/TestToken.sol | 6 ++++-- test/Stakes.test.js | 2 +- test/Storage.test.js | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/contracts/TestToken.sol b/contracts/TestToken.sol index 9d59ecc..6ec95f6 100644 --- a/contracts/TestToken.sol +++ b/contracts/TestToken.sol @@ -4,7 +4,9 @@ pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; contract TestToken is ERC20 { - constructor() ERC20("TestToken", "TST") { - _mint(msg.sender, 1000); + constructor(address[] memory holders) ERC20("TestToken", "TST") { + for (uint i=0; i