[price_pusher] fix account sequence mismatch bug (#902)
* fix * bump version
This commit is contained in:
parent
f3edf9c971
commit
8f7b6ee4ba
|
@ -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",
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue