diff --git a/package.json b/package.json index cc66f918..206a3784 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lifi/sdk", - "version": "3.3.0-alpha.0", + "version": "3.3.0-alpha.1", "description": "LI.FI Any-to-Any Cross-Chain-Swap SDK", "keywords": [ "bridge", diff --git a/src/core/UTXO/parseUTXOErrors.ts b/src/core/UTXO/parseUTXOErrors.ts index 74550327..0fe3bb09 100644 --- a/src/core/UTXO/parseUTXOErrors.ts +++ b/src/core/UTXO/parseUTXOErrors.ts @@ -21,7 +21,7 @@ export const parseUTXOErrors = async ( } const handleSpecificErrors = (e: any) => { - if (e.code === 4001 || e.code === -32000) { + if (e.code === 4001 || e.code === -32000 || e.cause?.includes?.('rejected')) { return new TransactionError(LiFiErrorCode.SignatureRejected, e.message, e) } if (e.code === -5 || e.code === -32700 || e.code === -32064) { diff --git a/src/version.ts b/src/version.ts index 9dcfebfd..c1a0684a 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1,2 +1,2 @@ export const name = '@lifi/sdk' -export const version = '3.3.0-alpha.0' +export const version = '3.3.0-alpha.1'