Skip to content

Lesson 13: front_end/src/deployments/map.json file #262

Answered by cromewar
toddabraham asked this question in Q&A
Discussion options

You must be logged in to vote

This is a tricky one, but let me try to solve the question.

When you compile a project on Brownie, Map.json gets generated automatically saving the recent deployments yo made, the info of the networks comes directly from brownie-config.yaml. As JavaScripts cannot understand things outside the src you send that information at deployment with the update_front_end function which sends a Json File.

Also you need the build folder so you send it using copy_folders_to_frontend function


As you can see, map.jsoncomes from brownie compilation.

Hope this might solve your question.

Replies: 1 comment 2 replies

Comment options

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

@cromewar
Comment options

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