-
Notifications
You must be signed in to change notification settings - Fork 103
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
refactor: Rename credit class designer to admin (#496) #500
Conversation
Codecov Report
@@ Coverage Diff @@
## master #500 +/- ##
=======================================
Coverage 77.08% 77.08%
=======================================
Files 101 101
Lines 12824 12826 +2
=======================================
+ Hits 9885 9887 +2
Misses 2332 2332
Partials 607 607
Flags with carried forward coverage won't be shown. Click here to find out more. |
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.
As you mentioned in the issue, when checking whether an address is on the allowlist, I'm pretty sure we want to check the --from
address rather than the admin address provided in the request.
Also, should the creator pay the fee? This would prevent the need for two signatures.
So I've modified it to set the |
440ed3f
to
654d35f
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.
This looks good to me. I think removing the CLI parameter for admin and using --from
helps make things more clear from a user perspective.
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.
LGTM!
Description
This renames credit class designer to admin, because this a more accurate description of the permissions of this account. The actual designer of the class may not be involved in the process of managing the credit class on-chain.
Closes: #496
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change