sdk/js: nft - wait for token approve
Change-Id: Ic933f75f704e88acc860f2f31b8379899d91b80f
This commit is contained in:
parent
d0d5ea06cd
commit
7ec0e66a26
|
@ -18,7 +18,7 @@ export async function transferFromEth(
|
||||||
) {
|
) {
|
||||||
//TODO: should we check if token attestation exists on the target chain
|
//TODO: should we check if token attestation exists on the target chain
|
||||||
const token = NFTImplementation__factory.connect(tokenAddress, signer);
|
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 bridge = NFTBridge__factory.connect(tokenBridgeAddress, signer);
|
||||||
const v = await bridge.transferNFT(
|
const v = await bridge.transferNFT(
|
||||||
tokenAddress,
|
tokenAddress,
|
||||||
|
|
Loading…
Reference in New Issue