-
Notifications
You must be signed in to change notification settings - Fork 38
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: ImmutableERC1155 threat model #229
refactor: ImmutableERC1155 threat model #229
Conversation
|
||
Contracts covered under this model include: | ||
|
||
- [ImmutableERC1155](../../contracts/token/erc1155/preset/ImmutableERC1155.sol) |
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 would have this link to a specific githash. Given you are using the diagram from the README, it is conceivable that the diagram may change.
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.
Have updated this link and also links for underlying contracts, to keep them all in sync: cef4175
Functions that _change_ state: | ||
| Name | Function Selector | Access Control | | ||
| ------------------------------------------------------------- | ----------------- | --------------------- | | ||
| burn(address,uint256,uint256) | f5298aca | None - permisionless | |
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 would expect the access control is that only the token owner can call burn.
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.
thanks, have addressed all state changing functions that previously mentioned being permissionless
Update threat model for
ImmutableERC1155
contract: