Skip to content

Commit f520d4e

Browse files
committed
updates
1 parent cf899c8 commit f520d4e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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)