diff --git a/src/background.ts b/src/background.ts index f51c32e..ed7c6e9 100644 --- a/src/background.ts +++ b/src/background.ts @@ -1693,6 +1693,10 @@ export async function createBuyOrderTx({ crosschainAtInfo, isGateway, foreignBlo const res = await responseFetch.json(); + if(res?.error && res?.message){ + throw new Error(res?.message) + } + if(!responseFetch?.ok) throw new Error('Failed to submit buy order') if (res === false) { responseVar = {