mirror of
https://github.com/3lLobo/zkAuth.git
synced 2026-01-09 12:27:55 -05:00
Hardhat
This commit is contained in:
1
backend/.env.example
Normal file
1
backend/.env.example
Normal file
@@ -0,0 +1 @@
|
||||
PRIVATE_GOERLII_KEY=xxxx
|
||||
@@ -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': {
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user