Skip to content

Commit

Permalink
fix rename nameai (#544)
Browse files Browse the repository at this point in the history
* fix rename nameai

* Create cold-dingos-pay.md
  • Loading branch information
djstrong authored Jan 12, 2025
1 parent d3d55cc commit 2ccb923
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/cold-dingos-pay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@namehash/nameai": patch
---

fix rename nameai
8 changes: 4 additions & 4 deletions packages/nameai-sdk/src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,17 @@ describe("inspectName edge cases", () => {
describe("NameAI constructor", () => {
it("should ensure endpoint ends with trailing slash", () => {
const client1 = createClient({
nameaiEndpoint: "https://api.nameai.io/nameai",
nameaiEndpoint: "https://api.nameai.dev/nameai",
});
expect(client1["nameaiEndpoint"].href).toBe(
"https://api.nameai.io/nameai/",
"https://api.nameai.dev/nameai/",
);

const client2 = createClient({
nameaiEndpoint: "https://api.nameai.io/nameai/",
nameaiEndpoint: "https://api.nameai.dev/nameai/",
});
expect(client2["nameaiEndpoint"].href).toBe(
"https://api.nameai.io/nameai/",
"https://api.nameai.dev/nameai/",
);
});
});
2 changes: 1 addition & 1 deletion packages/nameai-sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class NameAIError extends Error {
}
}

const DEFAULT_ENDPOINT = "https://api.nameai.io/";
const DEFAULT_ENDPOINT = "https://api.nameai.dev/";
const DEFAULT_NETWORK: Network = "mainnet";
const DEFAULT_INSPECT_LABELHASH_PARENT = ETH_TLD;
export const DEFAULT_COMPUTE_NAMEGUARD_REPORT = false;
Expand Down

0 comments on commit 2ccb923

Please sign in to comment.