Skip to content

Commit

Permalink
fix: when using custom block time
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Sep 11, 2024
1 parent ccc5e77 commit 2253d2b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/localnet/src/createToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,16 @@ export const createToken = async ({
deployOpts
);

await zrc20.waitForDeployment();

if (!isGasToken) {
const erc20Factory = new ethers.ContractFactory(
TestERC20.abi,
TestERC20.bytecode,
deployer
);
erc20 = await erc20Factory.deploy(symbol, symbol, deployOpts);
await erc20.waitForDeployment();
const erc20Decimals = await (erc20 as any).connect(deployer).decimals();

await (erc20 as any)
Expand Down

0 comments on commit 2253d2b

Please sign in to comment.