diff --git a/price_pusher/package.json b/price_pusher/package.json index 796035ac..62cf577a 100644 --- a/price_pusher/package.json +++ b/price_pusher/package.json @@ -1,6 +1,6 @@ { "name": "@pythnetwork/price-pusher", - "version": "5.3.1", + "version": "5.3.2", "description": "Pyth Price Pusher", "homepage": "https://pyth.network", "main": "lib/index.js", diff --git a/price_pusher/src/injective/injective.ts b/price_pusher/src/injective/injective.ts index c61af300..fb847205 100644 --- a/price_pusher/src/injective/injective.ts +++ b/price_pusher/src/injective/injective.ts @@ -174,7 +174,7 @@ export class InjectivePricePusher implements IPricePusher { return txResponse; } catch (e: any) { // The sequence number was invalid and hence we will have to fetch it again. - if (e.message.match(/account sequence mismatch/) !== null) { + if (JSON.stringify(e).match(/account sequence mismatch/) !== null) { // We need to fetch the account details again. this.account = null; }