Skip to content

Commit 6291247

Browse files
authored
Merge pull request #81 from nash-io/ts/approval-update
Ts/approval update
2 parents cf899c8 + f2b8657 commit 6291247

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
<a name="6.2.3"></a>
6+
## [6.2.3](https://github.com/nash-io/api-client-typescript/compare/v6.2.1...v6.2.3) (2021-08-26)
7+
8+
9+
510
<a name="6.2.1"></a>
611
## [6.2.1](https://github.com/nash-io/api-client-typescript/compare/v6.1.5...v6.2.1) (2021-08-18)
712

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@neon-exchange/api-client-typescript",
3-
"version": "6.2.1",
3+
"version": "6.2.3",
44
"description": "Official TypeScript client for interacting with the Nash exchange",
55
"main": "build/main/index.js",
66
"typings": "build/main/index.d.ts",

src/client/client.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,8 @@ export const BIG_NUMBER_FORMAT = {
275275
prefix: ''
276276
}
277277

278-
export const UNLIMITED_APPROVAL =
279-
'0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe'
280-
export const ACCEPTABLE_APPROVAL = '0xffffffffffffffffffffffffffffe'
278+
export const UNLIMITED_APPROVAL = Number.MAX_SAFE_INTEGER
279+
281280
export class Client {
282281
private _socket = null
283282
private mode: ClientMode = ClientMode.NONE
@@ -2947,7 +2946,7 @@ export class Client {
29472946

29482947
const approveParams: InputApproveTransaction = {
29492948
minimumQuantity: {
2950-
amount: new BigNumber(ACCEPTABLE_APPROVAL, 16).toString(),
2949+
amount: new BigNumber(amount.amount, 16).toString(),
29512950
assetHash: assetData.hash,
29522951
blockchain
29532952
},

0 commit comments

Comments
 (0)