forked from LaconicNetwork/icns-frontend
Update env variables
This commit is contained in:
parent
5c04d95d0e
commit
647bb17735
@ -1,5 +1,5 @@
|
|||||||
export const OSMOSIS_CHAIN_ID =
|
export const MAIN_CHAIN_ID =
|
||||||
process.env.NEXT_PUBLIC_OSMOSIS_CHAIND_ID ?? "osmosis-test-4";
|
process.env.NEXT_PUBLIC_MAIN_CHAIN_ID ?? "osmo-test-4";
|
||||||
|
|
||||||
export const REFERRAL_KEY =
|
export const REFERRAL_KEY =
|
||||||
process.env.NEXT_PUBLIC_REFERRAL_KEY ?? "icns-referral";
|
process.env.NEXT_PUBLIC_REFERRAL_KEY ?? "icns-referral";
|
||||||
|
@ -37,7 +37,7 @@ import { Bech32Address, ChainIdHelper } from "@keplr-wallet/cosmos";
|
|||||||
import { AllChainsItem } from "../../components/chain-list/all-chains-item";
|
import { AllChainsItem } from "../../components/chain-list/all-chains-item";
|
||||||
import { SearchInput } from "../../components/search-input";
|
import { SearchInput } from "../../components/search-input";
|
||||||
import {
|
import {
|
||||||
OSMOSIS_CHAIN_ID,
|
MAIN_CHAIN_ID,
|
||||||
REFERRAL_KEY,
|
REFERRAL_KEY,
|
||||||
RESOLVER_ADDRESS,
|
RESOLVER_ADDRESS,
|
||||||
REST_URL,
|
REST_URL,
|
||||||
@ -195,7 +195,7 @@ export default function VerificationPage(props: { blockList: string[] }) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (keplrWallet) {
|
if (keplrWallet) {
|
||||||
const key = await keplrWallet.getKey(OSMOSIS_CHAIN_ID);
|
const key = await keplrWallet.getKey(MAIN_CHAIN_ID);
|
||||||
setIsOwner(ownerOfQueryResponse.data.owner === key.bech32Address);
|
setIsOwner(ownerOfQueryResponse.data.owner === key.bech32Address);
|
||||||
setNFTOwnerAddress(ownerOfQueryResponse.data.owner);
|
setNFTOwnerAddress(ownerOfQueryResponse.data.owner);
|
||||||
}
|
}
|
||||||
@ -226,7 +226,7 @@ export default function VerificationPage(props: { blockList: string[] }) {
|
|||||||
|
|
||||||
if (keplr) {
|
if (keplr) {
|
||||||
const keplrWallet = new KeplrWallet(keplr);
|
const keplrWallet = new KeplrWallet(keplr);
|
||||||
const key = await keplrWallet.getKey(OSMOSIS_CHAIN_ID);
|
const key = await keplrWallet.getKey(MAIN_CHAIN_ID);
|
||||||
|
|
||||||
await fetchChainList(keplrWallet);
|
await fetchChainList(keplrWallet);
|
||||||
setWallet(keplrWallet);
|
setWallet(keplrWallet);
|
||||||
@ -301,14 +301,14 @@ export default function VerificationPage(props: { blockList: string[] }) {
|
|||||||
|
|
||||||
const checkAdr36 = async () => {
|
const checkAdr36 = async () => {
|
||||||
if (twitterAuthInfo && wallet) {
|
if (twitterAuthInfo && wallet) {
|
||||||
const key = await wallet.getKey(OSMOSIS_CHAIN_ID);
|
const key = await wallet.getKey(MAIN_CHAIN_ID);
|
||||||
|
|
||||||
const chainIds = Array.from(checkedItems).map((chain) => {
|
const chainIds = Array.from(checkedItems).map((chain) => {
|
||||||
return (chain as ChainItemType).chainId;
|
return (chain as ChainItemType).chainId;
|
||||||
});
|
});
|
||||||
|
|
||||||
return wallet.signICNSAdr36(
|
return wallet.signICNSAdr36(
|
||||||
OSMOSIS_CHAIN_ID,
|
MAIN_CHAIN_ID,
|
||||||
RESOLVER_ADDRESS,
|
RESOLVER_ADDRESS,
|
||||||
key.bech32Address,
|
key.bech32Address,
|
||||||
twitterAuthInfo.username,
|
twitterAuthInfo.username,
|
||||||
@ -372,7 +372,7 @@ export default function VerificationPage(props: { blockList: string[] }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const chainInfo = {
|
const chainInfo = {
|
||||||
chainId: OSMOSIS_CHAIN_ID,
|
chainId: MAIN_CHAIN_ID,
|
||||||
rest: REST_URL,
|
rest: REST_URL,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user