Skip to content

Commit 8f7b6ee

Browse files
author
Dev Kalra
authored
[price_pusher] fix account sequence mismatch bug (#902)
* fix * bump version
1 parent f3edf9c commit 8f7b6ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

price_pusher/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pythnetwork/price-pusher",
3-
"version": "5.3.1",
3+
"version": "5.3.2",
44
"description": "Pyth Price Pusher",
55
"homepage": "https://pyth.network",
66
"main": "lib/index.js",

price_pusher/src/injective/injective.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export class InjectivePricePusher implements IPricePusher {
174174
return txResponse;
175175
} catch (e: any) {
176176
// The sequence number was invalid and hence we will have to fetch it again.
177-
if (e.message.match(/account sequence mismatch/) !== null) {
177+
if (JSON.stringify(e).match(/account sequence mismatch/) !== null) {
178178
// We need to fetch the account details again.
179179
this.account = null;
180180
}

0 commit comments

Comments
 (0)