Skip to content

Commit

Permalink
feat: Add waitForDeployment() method after approving token transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
PleBea committed Sep 25, 2024
1 parent b3225a9 commit 318bc23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/blockchain/blockchain.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class BlockchainService {

await erc20.approve(this.deployer.address, ethers.parseUnits(amount.toString(), 18));

await erc20.wait();
await erc20.waitForDeployment();

await erc20.transfer(to, ethers.parseUnits(amount.toString(), 18), {
gasLimit: 100000,
Expand Down

0 comments on commit 318bc23

Please sign in to comment.