sdk/js: propagate exception in getIsTransferCompletedTerra
This commit is contained in:
parent
9257443a4f
commit
bf556f0c7a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue