diff --git a/package.json b/package.json index a5cbeb58..062888cf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@axelar-network/axelarjs-sdk", - "version": "0.16.1", + "version": "0.16.2", "description": "The JavaScript SDK for Axelar Network", "repository": { "type": "git", diff --git a/src/libs/TransactionRecoveryApi/AxelarRecoveryApi.ts b/src/libs/TransactionRecoveryApi/AxelarRecoveryApi.ts index 215731bf..693a0993 100644 --- a/src/libs/TransactionRecoveryApi/AxelarRecoveryApi.ts +++ b/src/libs/TransactionRecoveryApi/AxelarRecoveryApi.ts @@ -154,7 +154,8 @@ export class AxelarRecoveryApi { .then((data) => data.find( (gmpTx: any) => - gmpTx.id.indexOf(txHash) > -1 || gmpTx.call.transactionHash.indexOf(txHash) > -1 // the source transaction hash will be stored at "tx.call.transactionHash", if it is sent from cosmos, otherwise it'll be stored at `tx.id` field. + gmpTx.id.toLowerCase().indexOf(txHash.toLowerCase()) > -1 || + gmpTx.call.transactionHash.toLowerCase().indexOf(txHash.toLowerCase()) > -1 // the source transaction hash will be stored at "tx.call.transactionHash", if it is sent from cosmos, otherwise it'll be stored at `tx.id` field. ) ) .catch(() => undefined);