This commit is contained in:
daniecon
2022-09-26 20:10:21 +02:00
parent d74262730d
commit 0815756593
3 changed files with 4 additions and 2 deletions

1
backend/.env.example Normal file
View File

@@ -0,0 +1 @@
PRIVATE_GOERLII_KEY=xxxx

View File

@@ -4,6 +4,7 @@ import 'hardhat-deploy-ethers'
import '@typechain/hardhat'
import '@nomicfoundation/hardhat-toolbox'
require('dotenv').config()
const config: HardhatUserConfig = {
solidity: {
@@ -26,7 +27,7 @@ const config: HardhatUserConfig = {
// for testnet
'optimism-goerli': {
url: 'https://goerli.optimism.io',
//accounts: [privateKey1, ]
accounts: [process.env.PRIVATE_GOERLII_KEY ?? ''],
},
// for the local dev environment
'optimism-local': {

View File

@@ -3,7 +3,7 @@ import { Dialog, Transition } from '@headlessui/react'
import { MinusIcon, XMarkIcon } from '@heroicons/react/24/outline'
import { ethers } from 'ethers'
import { AlchemyProvider } from '@ethersproject/providers'
import { shortenAddress, useEthers, useResolveName } from '@usedapp/core'
import { shortenAddress, useEthers } from '@usedapp/core'
import { CheckIcon } from '@heroicons/react/20/solid'
import { ThreeDots } from 'react-loader-spinner'
import { useTheme } from 'next-themes'