Skip to content

Update-front-end script doesnt update for Rinkeby #544

Answered by AlexS3abo
aranyadan asked this question in Q&A
Discussion options

You must be logged in to vote

Had the same problem. I have added await statements like so and it updated:

module.exports = async function () {
    if (process.env.UPDATE_FRONT_END) {
        console.log("Updating front end...")
        await updateContractAddresses()
        await updateAbi()
        console.log("Front end written!")
    }
}

Let me know if this is wrong or bad coding practice (so I can run it differently). But it works.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@aranyadan
Comment options

@chuukwuemeka
Comment options

Answer selected by aranyadan
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