@rabby-wallet/rabby-api 0.9.50-beta.1 → 0.9.51-alpha.0

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.
Files changed (2) hide show
  1. package/dist/index.js +8 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -439,12 +439,15 @@ export class OpenApiService {
439
439
  return data;
440
440
  });
441
441
  this.getSwapTokenList = (id, chainId) => __awaiter(this, void 0, void 0, function* () {
442
+ const params = {
443
+ id,
444
+ is_all: false,
445
+ };
446
+ if (chainId) {
447
+ params.chain_id = chainId;
448
+ }
442
449
  const { data } = yield this.request.get('/v1/wallet/swap_token_list', {
443
- params: {
444
- id,
445
- chain_id: chainId,
446
- is_all: false,
447
- },
450
+ params,
448
451
  });
449
452
  return data;
450
453
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/rabby-api",
3
- "version": "0.9.50-beta.1",
3
+ "version": "0.9.51-alpha.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [