Skip to content

Commit

Permalink
♻️ review PR
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin Burg committed Jan 8, 2024
1 parent f8be644 commit 07360bb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
8 changes: 3 additions & 5 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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",
Expand All @@ -72,8 +72,6 @@ export class GasStation {
}
}

const g = new GasStation();

export class PermitContract {
address: string;
tezos: TezosToolkit;
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down

0 comments on commit 07360bb

Please sign in to comment.