bridge_ui: Recovery should await fetchSignedVAA fix (#1456)
This commit is contained in:
parent
9510bb47d9
commit
a8cc328fd0
|
@ -153,7 +153,7 @@ async function algo(tx: string, enqueueSnackbar: any) {
|
||||||
throw new Error("Sequence not found");
|
throw new Error("Sequence not found");
|
||||||
}
|
}
|
||||||
const emitterAddress = getEmitterAddressAlgorand(ALGORAND_TOKEN_BRIDGE_ID);
|
const emitterAddress = getEmitterAddressAlgorand(ALGORAND_TOKEN_BRIDGE_ID);
|
||||||
return fetchSignedVAA(CHAIN_ID_ALGORAND, emitterAddress, sequence);
|
return await fetchSignedVAA(CHAIN_ID_ALGORAND, emitterAddress, sequence);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return handleError(e, enqueueSnackbar);
|
return handleError(e, enqueueSnackbar);
|
||||||
}
|
}
|
||||||
|
@ -177,7 +177,7 @@ async function evm(
|
||||||
? getNFTBridgeAddressForChain(chainId)
|
? getNFTBridgeAddressForChain(chainId)
|
||||||
: getTokenBridgeAddressForChain(chainId)
|
: getTokenBridgeAddressForChain(chainId)
|
||||||
);
|
);
|
||||||
return fetchSignedVAA(chainId, emitterAddress, sequence);
|
return await fetchSignedVAA(chainId, emitterAddress, sequence);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return handleError(e, enqueueSnackbar);
|
return handleError(e, enqueueSnackbar);
|
||||||
}
|
}
|
||||||
|
@ -194,7 +194,7 @@ async function solana(tx: string, enqueueSnackbar: any, nft: boolean) {
|
||||||
const emitterAddress = await getEmitterAddressSolana(
|
const emitterAddress = await getEmitterAddressSolana(
|
||||||
nft ? SOL_NFT_BRIDGE_ADDRESS : SOL_TOKEN_BRIDGE_ADDRESS
|
nft ? SOL_NFT_BRIDGE_ADDRESS : SOL_TOKEN_BRIDGE_ADDRESS
|
||||||
);
|
);
|
||||||
return fetchSignedVAA(CHAIN_ID_SOLANA, emitterAddress, sequence);
|
return await fetchSignedVAA(CHAIN_ID_SOLANA, emitterAddress, sequence);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return handleError(e, enqueueSnackbar);
|
return handleError(e, enqueueSnackbar);
|
||||||
}
|
}
|
||||||
|
@ -211,7 +211,7 @@ async function terra(tx: string, enqueueSnackbar: any, chainId: TerraChainId) {
|
||||||
const emitterAddress = await getEmitterAddressTerra(
|
const emitterAddress = await getEmitterAddressTerra(
|
||||||
getTokenBridgeAddressForChain(chainId)
|
getTokenBridgeAddressForChain(chainId)
|
||||||
);
|
);
|
||||||
return fetchSignedVAA(chainId, emitterAddress, sequence);
|
return await fetchSignedVAA(chainId, emitterAddress, sequence);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return handleError(e, enqueueSnackbar);
|
return handleError(e, enqueueSnackbar);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue