Skip to content

Commit

Permalink
Fix deploy
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 2b14ebb commit 931dbdc
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions contracts/scripts/deploy-erc20.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ const testConfigPath = path.join(process.env.ZKSYNC_HOME as string, `etc/test_co
const ethTestConfig = JSON.parse(fs.readFileSync(`${testConfigPath}/eth.json`, { encoding: 'utf-8' }));

const provider = web3Provider();
const wallet = Wallet.fromMnemonic(
process.env.MNEMONIC ? process.env.MNEMONIC : ethTestConfig.mnemonic,
"m/44'/60'/0'/0/1"
).connect(provider);
const wallet = Wallet.fromMnemonic(ethTestConfig.mnemonic, "m/44'/60'/0'/0/1").connect(provider);

type Token = {
address: string | null;
Expand All @@ -39,10 +36,9 @@ async function deployToken(token: TokenDescription): Promise<Token> {
);
await erc20.mint(wallet.address, parseEther('3000000000'));
for (let i = 0; i < 10; ++i) {
const testWallet = Wallet.fromMnemonic(
process.env.MNEMONIC ? process.env.MNEMONIC : ethTestConfig.mnemonic,
"m/44'/60'/0'/0/" + i
).connect(provider);
const testWallet = Wallet.fromMnemonic(ethTestConfig.test_mnemonic as string, "m/44'/60'/0'/0/" + i).connect(
provider
);
await erc20.mint(testWallet.address, parseEther('3000000000'));
}
token.address = erc20.address;
Expand Down

0 comments on commit 931dbdc

Please sign in to comment.