Skip to content
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

Closed
wants to merge 19 commits into from
Closed

ON-466: Immutable Vault #8

wants to merge 19 commits into from

Conversation

karacurt
Copy link
Contributor

@karacurt karacurt marked this pull request as draft August 30, 2023 18:32
contracts/ImmutableVault.sol Outdated Show resolved Hide resolved
contracts/ImmutableVault.sol Outdated Show resolved Hide resolved
contracts/ImmutableVault.sol Outdated Show resolved Hide resolved
contracts/ImmutableVault.sol Outdated Show resolved Hide resolved
contracts/ImmutableVault.sol Outdated Show resolved Hide resolved
contracts/ImmutableVault.sol Outdated Show resolved Hide resolved
contracts/ImmutableVault.sol Outdated Show resolved Hide resolved
contracts/ImmutableVault.sol Outdated Show resolved Hide resolved
contracts/ImmutableVault.sol Outdated Show resolved Hide resolved
contracts/ImmutableVault.sol Outdated Show resolved Hide resolved
contracts/ImmutableVault.sol Outdated Show resolved Hide resolved
contracts/ImmutableVault.sol Outdated Show resolved Hide resolved
contracts/ImmutableVault.sol Outdated Show resolved Hide resolved
contracts/ImmutableVault.sol Outdated Show resolved Hide resolved
contracts/ImmutableVault.sol Show resolved Hide resolved
contracts/ImmutableVault.sol Outdated Show resolved Hide resolved
contracts/ImmutableVault.sol Outdated Show resolved Hide resolved
contracts/ImmutableVault.sol Outdated Show resolved Hide resolved
@karacurt karacurt marked this pull request as ready for review September 1, 2023 19:36
contracts/ImmutableVault.sol Outdated Show resolved Hide resolved
contracts/ImmutableVault.sol Show resolved Hide resolved

for (uint256 i = 0; i < _roleAssignments.length; i++) {
_grantRole(_tokenAddress, _tokenId, _expirationDate, _data[i], _roleAssignments[i]);
nftInfo[_tokenAddress][_tokenId].roleAssignments.push(_roleAssignments[i]);
Copy link
Contributor

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?

Copy link
Contributor Author

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.

contracts/ImmutableVault.sol Outdated Show resolved Hide resolved
@karacurt karacurt closed this Sep 15, 2023
@karacurt karacurt deleted the feature--ON-466 branch February 24, 2024 03:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants