Skip to content

Commit 2e055a7

Browse files
committed
Minor change
1 parent 10aa054 commit 2e055a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

utils/lottery/contract.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import Web3 from 'web3'
22
import { EventData } from 'web3-eth-contract'
3-
import lotteryConfig from './contract.json'
3+
import lotteryJson from './contract.json'
44
import emitter from '../emitter'
55

66
type NetworkSettings = Record<string, { address: string }>
77

88
const projectUrl = process.env['NEXT_PUBLIC_PROJECT_URL']
99
const networkId = process.env['NEXT_PUBLIC_NETWORK_ID']
1010

11-
const networkSettings = lotteryConfig.networks as NetworkSettings
11+
const networkSettings = lotteryJson.networks as NetworkSettings
1212

13-
const CONTRACT_ABI = lotteryConfig.abi as unknown as AbiItem
13+
const CONTRACT_ABI = lotteryJson.abi as unknown as AbiItem
1414
const CONTRACT_ADDRESS = networkSettings[networkId ?? 5777].address
1515

1616
export const web3 = new Web3(Web3.givenProvider ?? projectUrl)

0 commit comments

Comments
 (0)