-
Notifications
You must be signed in to change notification settings - Fork 245
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
Add a function to convert an ACL Param to uint256 #427
Comments
I will submit a pull request if you think it's a good idea |
Hey @leftab , yes I think it's a good idea. Besides I think it would good also to:
Anyway I would wait to hear @izqui or @sohkai opinion about it. |
On top of @bingen's list, I think there are a number of ways we could restructure the ACL so that the "scripting language" we're defining and evaluating with the params is logically decoupled from the ACL itself. Users should be able to include a library (there's a few technical problems with this) or inherit from a contract to get access to the definitions needed to construct and massage params, and the evaluator could be its own contract so any subclass could potentially have the ability to evaluate these params. |
@sohkai @bingen I was about to add some tests for the new functions but I just noticed that the Do you know the reason why? |
@leftab Mostly because it's a sugar library whose tests would be fairly academic, but there would be value in adding tests for it, especially the |
Got it! Thanks for the explaination @sohkai ! ;) |
Currently, ACL parameters are created with the
Param
struct:but the ACL
grantPermissionP
function takes auint256[]
for its parameters:It could be interesting to have a helper function to convert a
Param
struct touint256
.Something like this:
The text was updated successfully, but these errors were encountered: