sdk/js: eth wait for token approval

Change-Id: I9e2c0908c75983105420168c8e181581a99cd8b8
This commit is contained in:
Evan Gray 2021-08-31 13:11:22 -04:00
parent 7b4a7ea17c
commit 3e4b673bb5
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ export async function transferFromEth(
// signerAddress,
// tokenBridgeAddress
// );
await token.approve(tokenBridgeAddress, amount);
await (await token.approve(tokenBridgeAddress, amount)).wait();
const fee = 0; // for now, this won't do anything, we may add later
const bridge = Bridge__factory.connect(tokenBridgeAddress, signer);
const v = await bridge.transferTokens(