Skip to content

Commit c01f124

Browse files
committed
fix order nonce issue
1 parent 50b5f4b commit c01f124

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"dependencies": {
6262
"@absinthe/socket": "0.2.1",
6363
"@neon-exchange/nash-perf": "1.0.4",
64-
"@neon-exchange/nash-protocol": "4.5.4",
64+
"@neon-exchange/nash-protocol": "4.5.6",
6565
"@types/isomorphic-fetch": "0.0.35",
6666
"@types/node": "13.9.8",
6767
"@types/request": "2.48.1",

src/client/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ export class Client {
863863
this.nashProtocolMarketData = mapMarketsForNashProtocol(this.marketData)
864864
this.assetData = await this.fetchAssetData()
865865
this.pallierPkStr = JSON.stringify(this.apiKey.paillier_pk)
866-
this.currentOrderNonce = 0
866+
this.currentOrderNonce = createTimestamp32()
867867
await this.updateTradedAssetNonces()
868868
}
869869

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -738,10 +738,10 @@
738738
node-fetch "2.6.0"
739739
semver "7.3.2"
740740

741-
"@neon-exchange/nash-protocol@4.5.4":
742-
version "4.5.4"
743-
resolved "https://registry.yarnpkg.com/@neon-exchange/nash-protocol/-/nash-protocol-4.5.4.tgz#b138fb67bdfc5db48503b280ba793e7d17bf39d3"
744-
integrity sha512-W5mJo/WujGZ/zZZDw/ScOxRK995nUcCRjpGzWpIJCDFnWSKIEZrtyM46PiKhrcGEjgjknPLa8PSAG7PknZsfDw==
741+
"@neon-exchange/nash-protocol@4.5.6":
742+
version "4.5.6"
743+
resolved "https://registry.yarnpkg.com/@neon-exchange/nash-protocol/-/nash-protocol-4.5.6.tgz#44f123b5a2aacbfff8c4d7cfe3ef7fc26b7cecd1"
744+
integrity sha512-kbrBTQkR2/dvLZHi31Ey2EdJ2tFH1wZwYGQp2N7jI6gID82muwL5B2BI7m71jUT4rQEE6i5tMGrbIPnVhpG4AA==
745745
dependencies:
746746
bchaddrjs "^0.5.2"
747747
bignumber.js "8.1.1"

0 commit comments

Comments
 (0)