[price_pusher] fix account sequence mismatch bug (#902)

* fix

* bump version
This commit is contained in:
Dev Kalra 2023-06-20 22:56:37 +05:30 committed by GitHub
parent f3edf9c971
commit 8f7b6ee4ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@pythnetwork/price-pusher", "name": "@pythnetwork/price-pusher",
"version": "5.3.1", "version": "5.3.2",
"description": "Pyth Price Pusher", "description": "Pyth Price Pusher",
"homepage": "https://pyth.network", "homepage": "https://pyth.network",
"main": "lib/index.js", "main": "lib/index.js",

View File

@ -174,7 +174,7 @@ export class InjectivePricePusher implements IPricePusher {
return txResponse; return txResponse;
} catch (e: any) { } catch (e: any) {
// The sequence number was invalid and hence we will have to fetch it again. // 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. // We need to fetch the account details again.
this.account = null; this.account = null;
} }