sdk/js: eth wait for token approval
Change-Id: I9e2c0908c75983105420168c8e181581a99cd8b8
This commit is contained in:
parent
7b4a7ea17c
commit
3e4b673bb5
|
@ -25,7 +25,7 @@ export async function transferFromEth(
|
||||||
// signerAddress,
|
// signerAddress,
|
||||||
// tokenBridgeAddress
|
// 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 fee = 0; // for now, this won't do anything, we may add later
|
||||||
const bridge = Bridge__factory.connect(tokenBridgeAddress, signer);
|
const bridge = Bridge__factory.connect(tokenBridgeAddress, signer);
|
||||||
const v = await bridge.transferTokens(
|
const v = await bridge.transferTokens(
|
||||||
|
|
Loading…
Reference in New Issue