sdk/js: propagate exception in getIsTransferCompletedTerra

This commit is contained in:
Csongor Kiss 2022-10-15 13:48:09 +00:00 committed by Csongor Kiss
parent 9257443a4f
commit bf556f0c7a
1 changed files with 5 additions and 1 deletions

View File

@ -67,7 +67,11 @@ export async function getIsTransferCompletedTerra(
);
} catch (e: any) {
// redeemed if the VAA was already executed
return e.response.data.message.includes("VaaAlreadyExecuted");
if (e.response.data.message.includes("VaaAlreadyExecuted")) {
return true;
} else {
throw e;
}
}
return false;
}