-
Notifications
You must be signed in to change notification settings - Fork 28
Modify TokenRegistry contract #677
Modify TokenRegistry contract #677
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.
I'd rename RegisteredToken
-> TokenRegistered
similarly as here #676 (review). Other than that LGTM.
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. @jacque006 could you take a look as well and merge the PR?
Couple of things worth considering with these changes:
I have no strong opinion on either your changes or the access control schemes mentioned above as they all have their tradeoffs. Since you are the most active devs I will leave it at your discretion. Current changes look good 👍 assuming the above has been considered. |
Hey @jacque006, thanks for your answer 👍
I agree that we should to protect We're not there yet though, so this PR is just meant to simplify the token registration to a single tx - it is open to anyone now and will still be. The second, more important change in this PR is preventing repeated registration of a token contract - currently I suggest merging this PR now and tackling the issues that you mention in the future. |
Simplify registration to one tx instead of two and prevent registering the same token twice.