Skip to content

Commit

Permalink
fix: node
Browse files Browse the repository at this point in the history
  • Loading branch information
LanfordCai committed Jul 27, 2023
1 parent 2579e70 commit c6c0f28
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .env.development
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
NEXT_PUBLIC_CHAIN_ENV=testnet

NEXT_PUBLIC_APP_URL=https://flowview.vercel.app/
NEXT_PUBLIC_ACCESS_NODE_API=https://floral-special-valley.flow-mainnet.quiknode.pro
NEXT_PUBLIC_WALLET_DISCOVERY=https://fcl-discovery.onflow.org/authn
NEXT_PUBLIC_APP_URL=http://localhost:3000
NEXT_PUBLIC_ACCESS_NODE_API=https://side-still-sanctuary.flow-testnet.quiknode.pro
NEXT_PUBLIC_WALLET_DISCOVERY=https://fcl-discovery.onflow.org/testnet/authn

NEXT_PUBLIC_FLOWSCAN_URL=https://testnet.flowscan.org
NEXT_PUBLIC_NFTCATALOG_URL=https://www.flow-nft-catalog.com/catalog/testnet
Expand Down
9 changes: 4 additions & 5 deletions .env.production
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
NEXT_PUBLIC_CHAIN_ENV=testnet

NEXT_PUBLIC_APP_URL=https://flowview.vercel.app/
NEXT_PUBLIC_ACCESS_NODE_API=https://floral-special-valley.flow-mainnet.quiknode.pro
NEXT_PUBLIC_WALLET_DISCOVERY=https://fcl-discovery.onflow.org/authn
NEXT_PUBLIC_APP_URL=http://localhost:3000
NEXT_PUBLIC_ACCESS_NODE_API=https://side-still-sanctuary.flow-testnet.quiknode.pro
NEXT_PUBLIC_WALLET_DISCOVERY=https://fcl-discovery.onflow.org/testnet/authn

NEXT_PUBLIC_FLOWSCAN_URL=https://testnet.flowscan.org
NEXT_PUBLIC_NFTCATALOG_URL=https://www.flow-nft-catalog.com/catalog/testnet
Expand All @@ -19,5 +19,4 @@ NEXT_PUBLIC_METADATAVIEWS_ADDRESS=0x631e88ae7f1d7c20
NEXT_PUBLIC_NONFUNGIBLE_TOKEN_ADDRESS=0x631e88ae7f1d7c20
NEXT_PUBLIC_FUNGIBLE_TOKEN_ADDRESS=0x9a0766d93b6608b7
NEXT_PUBLIC_FUNGIBLE_TOKEN_SWITCHBOARD_ADDRESS=0x9a0766d93b6608b7
NEXT_PUBLIC_FLOWBOX_ADDRESS=0xbca26f5091cd39ec
NEXT_PUBLIC_ACCOUNTBOOKMARK_ADDRESS=0xdc34f5a7b807bcfb
NEXT_PUBLIC_FLOWBOX_ADDRESS=0xbca26f5091cd39ec
4 changes: 4 additions & 0 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ export const maybeDomain = (domain) => {

// TODO: replace this with fcl.account(address)
export const isValidFlowAddress = (address) => {
if (!address) {
return false
}

if (!address.startsWith("0x") || address.length != 18) {
return false
}
Expand Down

0 comments on commit c6c0f28

Please sign in to comment.