Skip to content

Commit

Permalink
support localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
lukema95 committed Dec 20, 2024
1 parent 058a43c commit 27b099b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/client/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export class ZetaChainClient {

if (params.contracts) {
this.contracts = params.contracts;
} else if (this.network === "localnet") {
} else if (this.network === "localnet" || this.network === "localhost") {
throw new Error("Localnet contracts are required");
} else {
this.contracts = this.network.includes("test")
Expand All @@ -176,7 +176,7 @@ export class ZetaChainClient {
}

public getGatewayAddress(): string {
if (this.network === "localnet") {
if (this.network === "localnet" || this.network === "localhost") {
const gateway = (this.contracts as LocalnetAddress[]).find(
(item) => item.type === "gatewayZEVM"
);
Expand Down

0 comments on commit 27b099b

Please sign in to comment.