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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stackswap-front-api-test-02",
3
- "version": "1.1.30",
3
+ "version": "1.1.31",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "start": "tsc -b tsconfig.build.json --watch --verbose",
package/src/index.ts CHANGED
@@ -108,7 +108,7 @@ export class StackswapMainnetAPI implements StackswapAPI{
108
108
 
109
109
  getCurrentBlock: () => Promise<any> = async () => {
110
110
  //https://stacks-node-api.mainnet.stacks.co/extended/v1/block?limit=0
111
- const get_result = await axios.get(this.config.STACKS_API_URL() + '/extended/v1/block?limit=0');
111
+ const get_result = await axios.get(this.config.STACKS_API_URL() + '/extended/v1/block?limit=1');
112
112
  return get_result.data.total;
113
113
  };
114
114