Skip to content

Commit

Permalink
fix: update protocol contracts url (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev authored Aug 3, 2024
1 parent c4d8cb5 commit 7ac9943
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/Docs/components/ContractAddresses.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ type ContractAddressData = {
type ContractAddressesByChain = Record<string, ContractAddressData[]>;

const addressesUrl: Record<NetworkType, string> = {
testnet: "https://raw.githubusercontent.com/zeta-chain/protocol-contracts/main/data/addresses.testnet.json",
mainnet: "https://raw.githubusercontent.com/zeta-chain/protocol-contracts/main/data/addresses.mainnet.json",
testnet: "https://raw.githubusercontent.com/zeta-chain/protocol-contracts/main/v1/data/addresses.testnet.json",
mainnet: "https://raw.githubusercontent.com/zeta-chain/protocol-contracts/main/v1/data/addresses.mainnet.json",
};

const groupDataByChain = (data: ContractAddressData[]) =>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Docs/components/ZetaTokenTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { LoadingTable, NetworkTypeTabs, networkTypeTabs } from "~/components/sha
import { NetworkType } from "~/lib/app.types";

const API: Record<NetworkType, string> = {
mainnet: "https://raw.githubusercontent.com/zeta-chain/protocol-contracts/main/data/addresses.mainnet.json",
testnet: "https://raw.githubusercontent.com/zeta-chain/protocol-contracts/main/data/addresses.testnet.json",
mainnet: "https://raw.githubusercontent.com/zeta-chain/protocol-contracts/main/v1/data/addresses.mainnet.json",
testnet: "https://raw.githubusercontent.com/zeta-chain/protocol-contracts/main/v1/data/addresses.testnet.json",
};

type AddressData = {
Expand Down

0 comments on commit 7ac9943

Please sign in to comment.