Skip to content

Commit

Permalink
update: add env.example, bump fcl
Browse files Browse the repository at this point in the history
  • Loading branch information
gregsantos committed Oct 24, 2022
1 parent 4e8592b commit bc77a3b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .env.local.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
NEXT_PUBLIC_FCL_CRYPTO_CONTRACT=0xf8d6e0586b0a20c7
FCL_CRYPTO_CONTRACT=0xf8d6e0586b0a20c7
FCL_CRYPTO_CONTRACT=0xf8d6e0586b0a20c7
NEXT_PUBLIC_WC_PROJECT_ID=
NEXT_PUBLIC_RELAY_URL=wss://relay.walletconnect.com
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"lint": "next lint"
},
"dependencies": {
"@onflow/fcl": "^1.3.0",
"@onflow/fcl": "1.3.1",
"@onflow/fcl-wc": "^1.0.0",
"next": "12.1.5",
"react": "18.0.0",
Expand Down
6 changes: 3 additions & 3 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import "../flow/config"

const WC_PROJECT_ID = process.env.NEXT_PUBLIC_WC_PROJECT_ID
const WC_METADATA = {
name: "FCL WalletConnect",
description: "FCL DApp for WalletConnect",
name: "FCL Harness",
description: "FCL Harness dApp for Development and Testing",
url: "https://flow.com/",
icons: ["https://avatars.githubusercontent.com/u/62387156?s=280&v=4"],
}
Expand Down Expand Up @@ -41,7 +41,7 @@ export default function Home() {
})
fcl.pluginRegistry.add(FclWcServicePlugin)
}
initAdapter()
if (process.env.NEXT_PUBLIC_WC_PROJECT_ID) initAdapter()
}, [])

useEffect(() => {
Expand Down

0 comments on commit bc77a3b

Please sign in to comment.