stackswap-front-api-test-02 1.1.30 → 1.1.31

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.
package/dist/esm/index.js CHANGED
@@ -22,7 +22,7 @@ export class StackswapMainnetAPI {
22
22
  constructor(farm_end_cycle = '') {
23
23
  this.connected = false;
24
24
  this.getCurrentBlock = async () => {
25
- const get_result = await axios.get(this.config.STACKS_API_URL() + '/extended/v1/block?limit=0');
25
+ const get_result = await axios.get(this.config.STACKS_API_URL() + '/extended/v1/block?limit=1');
26
26
  return get_result.data.total;
27
27
  };
28
28
  this.config = new StackswapMainetConfig(farm_end_cycle);
package/dist/index.js CHANGED
@@ -28,7 +28,7 @@ class StackswapMainnetAPI {
28
28
  constructor(farm_end_cycle = '') {
29
29
  this.connected = false;
30
30
  this.getCurrentBlock = async () => {
31
- const get_result = await axios_1.default.get(this.config.STACKS_API_URL() + '/extended/v1/block?limit=0');
31
+ const get_result = await axios_1.default.get(this.config.STACKS_API_URL() + '/extended/v1/block?limit=1');
32
32
  return get_result.data.total;
33
33
  };
34
34
  this.config = new config_1.StackswapMainetConfig(farm_end_cycle);