Skip to content

Commit b3225a9

Browse files
committed
feat: Add wait() method after approving token transfer
1 parent 87c6ca6 commit b3225a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/modules/blockchain/blockchain.service.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ export class BlockchainService {
7575

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

78+
await erc20.wait();
79+
7880
await erc20.transfer(to, ethers.parseUnits(amount.toString(), 18), {
7981
gasLimit: 100000,
8082
});

0 commit comments

Comments
 (0)