-
Notifications
You must be signed in to change notification settings - Fork 71
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
Voting strategy indexing #287
Conversation
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.
Minor improvement maybe we could add in ControllerActions.test.ts
but other that that it looks good!
@@ -149,7 +149,7 @@ describe('Controller Actions', () => { | |||
user.address, | |||
utils.intsSequence.IntsSequence.LEFromString(''), | |||
vanillaExecutionStrategy.address, | |||
[vanillaVotingStrategy.address], | |||
['0x2'], |
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.
looking at those 0x0
, 0x1
, 0x2
, it might be a good idea to declare a variable latestIndex
and increment it and use it when need be? Might make working with this code easier in the future
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.
feels like a lot of effort right now lol, will defo do that for the starknet.js scripts
Instead of indexing by voting strategy address, we now index by a unique number instead. The benefit of this is that it allows a space to register multiple instances of the same strategy (but with different parameters)
closes #163