Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Whitelist executors #103
Whitelist executors #103
Changes from 10 commits
e8b90aa
73a6e98
2311acb
70b07e9
69f7966
a3d3b6f
e404634
a0e975f
adb4521
6c698c2
eb1be22
ceee08f
76458b2
843ad89
703e0da
2344068
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
can we get away with just
add_executors
or justregister_executors
? seems kind of redundant to have bothThere 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.
lmao I'm stupid! Ofc we can :) 843ad89
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.
Oh actually the reason why there was an
add_executors
and aregister_executors
was becauseadd_executors
isonly_controller()
whereasregister
is not. Since_controller
is an argument passed in to theconstructor
(and notget_caller_address
),add_executors
fails when called in theconstructor
... I think we should keepregister_executors
, but we could decide to go the other way and simply set the_controller
toget_caller_address
in the constructorThere 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.
ok i see yes. annoying but not much we can do then
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.
once we create the space factory we can properly figure out the space deployment/controller update flows
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.
Decided to fix it by having
add_executors
simply be a wrapper with a call toonly_owner()
beforeregister_executors
. I think naming should be changed though, and maybe use_
as we sometimes do in solidity :)2344068