-
Notifications
You must be signed in to change notification settings - Fork 0
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
ON-466: Immutable Vault #8
Conversation
karacurt
commented
Aug 30, 2023
- Jira Task
|
||
for (uint256 i = 0; i < _roleAssignments.length; i++) { | ||
_grantRole(_tokenAddress, _tokenId, _expirationDate, _data[i], _roleAssignments[i]); | ||
nftInfo[_tokenAddress][_tokenId].roleAssignments.push(_roleAssignments[i]); |
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.
Don't you need to create an empty array before start appending role assignments?
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.
mappings are initialized automatically with default values like 0
, ""
or []
in this case.
Co-authored-by: Ernani São Thiago <[email protected]>