-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move beefy initialize params to construct #893
Conversation
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## proxy-contracts #893 +/- ##
===================================================
+ Coverage 65.50% 67.27% +1.76%
===================================================
Files 43 42 -1
Lines 1754 1583 -171
Branches 70 70
===================================================
- Hits 1149 1065 -84
+ Misses 586 499 -87
Partials 19 19
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer for DeployScript.sol
to read the beefy init parameters from a JSON file. With this approach, we know exactly what the init parameters will be before we actually deploy the contracts. This is important for production.
See docs at https://book.getfoundry.sh/cheatcodes/parse-json?highlight=parseJson#how-to-use-stdjson
There is also an example in our codebase at
fixtureData = vm.readFile(path).parseRaw(""); |
2d1d403
to
fe0d78b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
https://linear.app/snowfork/issue/SNO-567