sdk/js: nft - wait for token approve

Change-Id: Ic933f75f704e88acc860f2f31b8379899d91b80f
This commit is contained in:
Evan Gray 2021-09-22 09:03:27 -04:00
parent d0d5ea06cd
commit 7ec0e66a26
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ export async function transferFromEth(
) {
//TODO: should we check if token attestation exists on the target chain
const token = NFTImplementation__factory.connect(tokenAddress, signer);
await token.approve(tokenBridgeAddress, tokenID);
await (await token.approve(tokenBridgeAddress, tokenID)).wait();
const bridge = NFTBridge__factory.connect(tokenBridgeAddress, signer);
const v = await bridge.transferNFT(
tokenAddress,