Skip to content

Commit

Permalink
Fix init
Browse files Browse the repository at this point in the history
Signed-off-by: deniallugo <[email protected]>
  • Loading branch information
Deniallugo committed Sep 2, 2022
1 parent 1c23f6e commit 38fcadc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions contracts/scripts/deploy-erc20.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ async function deployToken(token: TokenDescription): Promise<Token> {
[token.name, token.symbol, token.decimals],
{ gasLimit: 5000000 }
);

await erc20.mint(wallet.address, parseEther('3000000000'));
for (let i = 0; i < 10; ++i) {
const testWallet = Wallet.fromMnemonic(process.env.MNEMONIC as string, "m/44'/60'/0'/0/" + i).connect(provider);
const testWallet = Wallet.fromMnemonic(
process.env.MNEMONIC ? process.env.MNEMONIC : ethTestConfig.mnemonic,
"m/44'/60'/0'/0/" + i
).connect(provider);
await erc20.mint(testWallet.address, parseEther('3000000000'));
}
token.address = erc20.address;
Expand Down Expand Up @@ -82,7 +84,6 @@ async function main() {
.action(async (tokens_json: string) => {
const tokens: Array<TokenDescription> = JSON.parse(tokens_json);
const result = [];

for (const token of tokens) {
result.push(await deployToken(token));
}
Expand Down

0 comments on commit 38fcadc

Please sign in to comment.