Skip to content

Lesson 10: Front-end files not getting updated (abi.json & contractAddresses.json) #1580

Answered by g01xm
LucidJoy asked this question in Q&A
Discussion options

You must be logged in to vote

You code looks alright, did you check the path of directory? if nextjs-smartcontract-lottery and your hardhat lottery code under same directory, it should be only one ../ like this:

const FRONT_END_ADDRESSES_FILE =
"../nextjs-smartcontract-lottery/constants/contractAddresses.json";
const FRONT_END_ABI_FILE =
"../nextjs-smartcontract-lottery/constants/abi.json";

or you need to check what is the correct path format for windows, because the tutorial code example is under MAC.

also make sure the process.env.UPDATE_FRONT_END = true

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@LucidJoy
Comment options

@krakxn
Comment options

@LucidJoy
Comment options

@krakxn
Comment options

@LucidJoy
Comment options

Comment options

You must be logged in to vote
1 reply
@LucidJoy
Comment options

Answer selected by LucidJoy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants