Skip to content

Commit 4e56468

Browse files
committed
timeout
1 parent 8e4c16e commit 4e56468

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/commands.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1413,12 +1413,14 @@ export class Commands {
14131413
console.log('Approving token transfer...')
14141414
const approveTx = await tokenContract.approve(escrowAddress, amountInUnits);
14151415
await approveTx.wait();
1416+
await new Promise(resolve => setTimeout(resolve, 3000));
14161417
console.log(`Successfully approved ${amount} ${token} to escrow`);
14171418

14181419

14191420
console.log('Depositing to escrow...')
14201421
const depositTx = await escrow.deposit(token, amount);
14211422
await depositTx.wait();
1423+
await new Promise(resolve => setTimeout(resolve, 3000));
14221424
return true;
14231425

14241426
} catch (error) {

0 commit comments

Comments
 (0)