@dydxprotocol/v4-client-js 3.0.0 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -78,7 +78,7 @@ async function removeAuthenticator(
78
78
  subaccount: SubaccountInfo,
79
79
  id: Long,
80
80
  ): Promise<void> {
81
- await client.removeAuthenticator(subaccount, id);
81
+ await client.removeAuthenticator(subaccount, id.toString());
82
82
  }
83
83
 
84
84
  async function addTestAuthenticator(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dydxprotocol/v4-client-js",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "General client library for the new dYdX system (v4 decentralized)",
5
5
  "main": "build/cjs/src/index.js",
6
6
  "module": "build/esm/src/index.js",
@@ -1381,9 +1381,9 @@ export class CompositeClient {
1381
1381
 
1382
1382
  async removeAuthenticator(
1383
1383
  subaccount: SubaccountInfo,
1384
- id: Long,
1384
+ id: string,
1385
1385
  ): Promise<BroadcastTxAsyncResponse | BroadcastTxSyncResponse | IndexedTx> {
1386
- return this.validatorClient.post.removeAuthenticator(subaccount, id);
1386
+ return this.validatorClient.post.removeAuthenticator(subaccount, Long.fromString(id));
1387
1387
  }
1388
1388
 
1389
1389
  async getAuthenticators(address: string): Promise<GetAuthenticatorsResponse> {
@@ -1011,7 +1011,7 @@ export class Post {
1011
1011
  undefined,
1012
1012
  Method.BroadcastTxSync,
1013
1013
  undefined,
1014
- undefined,
1014
+ 3,
1015
1015
  );
1016
1016
  }
1017
1017
  }