Lesson 12: Deployment artifacts #847
-
Running "01_deploy_box.py" works fine. But follow up with "02_upgrade_box.py" generates the following error: File "C:\Users\Computer\AppData\Roaming\Python\Python310\site-packages\brownie_cli\run.py", line 49, in main TransparentUpgradeableProxy[-1] is failing because it lost that data between runs. I've narrowed it down to having something to do with deployment artifacts. Tried adding "dev_deployment_artifacts: True" in brownie-config.yaml and running Ganache Gui before the scripts so that both scripts access the same blockchain data but no luck. The only way I can make it work is by running the deploy script with "-I" and then, in the resulting console prompt: run("scripts/02_upgrade_box.py") It works without a problem on Rinkeby, so this is only happening in local development environments. Might be more of a Brownie question but it does happen during the course...and I have a feeling I'll need an answer to this situation sooner or later. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hello @NathanPtrs, yes you are right this is more a problem with brownie/python rather the contract themselfs, using |
Beta Was this translation helpful? Give feedback.
Hello @NathanPtrs, yes you are right this is more a problem with brownie/python rather the contract themselfs, using
-1
tries to locate the latest compilation on the build folder, however this does not work sometimes, I strongly suggest to delete the build folder and try again, that might help.