From 09abf2f8a39b1438c72d8a7ad645bf2015bbcfa6 Mon Sep 17 00:00:00 2001 From: Kyle Fang Date: Sat, 9 Nov 2024 14:26:38 +0000 Subject: [PATCH] feat: use endpoint instead of url --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 4869cff..d6a9866 100644 --- a/src/index.ts +++ b/src/index.ts @@ -108,7 +108,7 @@ export class SimulationBuilder { private stacksNodeAPI: string; private constructor(options: SimulationBuilderOptions = {}) { - this.apiEndpoint = options.apiEndpoint ?? 'https://api.stxer.xyz/simulations'; + this.apiEndpoint = options.apiEndpoint ?? 'https://api.stxer.xyz'; this.stacksNodeAPI = options.stacksNodeAPI ?? 'https://api.hiro.so'; } @@ -339,7 +339,7 @@ To get in touch: contact@stxer.xyz } } const id = await runSimulation( - this.apiEndpoint, + `${this.apiEndpoint}/simulations`, block.block_hash, block.block_height, txs