Lesson 13: front_end/src/deployments/map.json file #262
-
Hi there, I may have missed something, but are we supposed to create the map.json file, or is it automatically created and populated after a deployment? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
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 Also you need the build folder so you send it using As you can see, Hope this might solve your question. |
Beta Was this translation helpful? Give feedback.
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 theupdate_front_end
function which sends a Json File.Also you need the build folder so you send it using
copy_folders_to_frontend
functionAs you can see,
map.json
comes from brownie compilation.Hope this might solve your question.