From 07360bbd49fa70b0c909f1966d4db485c80812b5 Mon Sep 17 00:00:00 2001 From: Quentin Burg Date: Mon, 8 Jan 2024 09:27:14 +0100 Subject: [PATCH] :recycle: review PR --- index.ts | 8 +++----- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/index.ts b/index.ts index e64fe3a..8e02ed2 100644 --- a/index.ts +++ b/index.ts @@ -31,9 +31,9 @@ export type PermitOperation = { }; export const GAS_STATION_PUBLIC_API_GHOSTNET = - "https://ghostnet.gas-station-api.marigold.dev/operation"; + "https://ghostnet.gas-station-api.marigold.dev"; export const GAS_STATION_PUBLIC_API_MAINNET = - "https://gas-station-api.marigold.dev/operation"; + "https://gas-station-api.marigold.dev"; export class GasStation { url: string; @@ -53,7 +53,7 @@ export class GasStation { operations: ops, }; - const response = await fetch(this.url, { + const response = await fetch(`${this.url}/operation`, { method: "POST", mode: "cors", cache: "no-cache", @@ -72,8 +72,6 @@ export class GasStation { } } -const g = new GasStation(); - export class PermitContract { address: string; tezos: TezosToolkit; diff --git a/package-lock.json b/package-lock.json index b62fd09..c716f35 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@marigold-dev/gas-station-lib", - "version": "0.0.6", + "version": "0.0.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@marigold-dev/gas-station-lib", - "version": "0.0.6", + "version": "0.0.7", "license": "LGPL 3", "dependencies": { "@taquito/michel-codec": "17.3.0", diff --git a/package.json b/package.json index 6582f17..a911afa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@marigold-dev/gas-station-lib", - "version": "0.0.6", + "version": "0.0.7", "description": "Interact with a gas station API and produce TZIP 17 permits", "main": "./dist/index.js", "files": [