-
Notifications
You must be signed in to change notification settings - Fork 2
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
test(refactor): move all variables into Constants contract #71
Conversation
711e2e6
to
c985d32
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.
my suggestion in that issue was to completely remove Defaults
or import it into Base_Test
, so we don’t have to call anything like defaults.<foo>
i don’t see the point of leaving some things in Defaults
while moving others into Base_Test
.
so i would rather:
- move the
index<num>Proof
functions back toDefaults
and import it intoBase_Test
, or - completely move the function from
Defaults
intoBase_Test
.
both work for me
Sounds good. I will move everything into Base. That looks a better design to me. |
Included your suggestion of removing |
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.
after seeing the actual functions from Base_Test
now, and at the same time keeping in mind the fact that we will import and use evm-utils
, and the file tests/utils/Utils.sol
will be removed after that change
another idea came to mind: what if we move all these functions into Utils
? IMO they are more of utility functions, especially the compute address functions and tranchesMerkleLT
.
even though the current version works, just asking as i believe we can improve it (and sorry for so many changes :)) )
I didn't get what you meant in your first sentence. We will have to keep Also, with respect to moving those function to Regardless, after |
i have not said anything about
sorry about that, edited the above message lmk if i've made self clear now |
8a9eb88
to
156b3b1
Compare
b9a2fce
to
1a71030
Compare
As discussed on Slack, lets leave those functions in Base for now and re-assess it in the |
aee38ca
to
6f08ca5
Compare
6f08ca5
to
0b7a7cd
Compare
I have resolved the conflicts on this PR and changed the base branch to |
test: remove redundant functions from Defaults test: remove Defaults contract fix bugs
0b7a7cd
to
f3ff0ee
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.
left some comments:
test: rename function params with "_"
pushed a commit dddc3c7 lmk if you don't agree with the changes and have a strong opinion about the previous version. if you don't, feel free to mark the comments above as resolved. i find it better this way |
gtg. Thanks for the feedback. |
Closes #63