Skip to content

Commit

Permalink
chore(ops): update default (#335)
Browse files Browse the repository at this point in the history
* fix(ui-ux): modified network from testnet to changi

* chore(package): update eslint to 6.6.0

* update network

* fix

* chore(ops): update config

* chore(ops): update default

* chore(ops): update default

---------

Co-authored-by: chloe <44501120+chloezxyy@users.noreply.github.com>
  • Loading branch information
pierregee and chloezxyy authored Sep 6, 2023
1 parent a5781d0 commit 37b2cfb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ export const V1_TRANSACTION_URL =
"api?module=transaction&action=gettxinfo&txhash=";

export const getBaseUrl = (network: NetworkConnection) => {
if (network === NetworkConnection.Changi) {
return process.env.NEXT_PUBLIC_RPC_URL_CHANGI;
if (network === NetworkConnection.MainNet) {
return process.env.NEXT_PUBLIC_RPC_URL_MAINNET;
}
if (network === NetworkConnection.TestNet) {
return process.env.NEXT_PUBLIC_RPC_URL_TESTNET;
}

return process.env.NEXT_PUBLIC_RPC_URL_MAINNET;
return process.env.NEXT_PUBLIC_RPC_URL_CHANGI;
};

export function filterParams(params: { key: string; value }[]): string {
Expand Down

0 comments on commit 37b2cfb

Please sign in to comment.