File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -154,9 +154,8 @@ contract Multiwrap is
154
154
string calldata _uriForWrappedToken ,
155
155
address _recipient
156
156
) external payable nonReentrant onlyRoleWithSwitch (MINTER_ROLE) returns (uint256 tokenId ) {
157
-
158
- if (! hasRole (ASSET_ROLE, address (0 ))) {
159
- for (uint256 i = 0 ; i < _tokensToWrap.length ; i += 1 ) {
157
+ if (! hasRole (ASSET_ROLE, address (0 ))) {
158
+ for (uint256 i = 0 ; i < _tokensToWrap.length ; i += 1 ) {
160
159
_checkRole (ASSET_ROLE, _tokensToWrap[i].assetContract);
161
160
}
162
161
}
Original file line number Diff line number Diff line change @@ -176,13 +176,12 @@ contract MultiwrapTest is BaseTest {
176
176
* Only assets with ASSET_ROLE can be wrapped.
177
177
*/
178
178
function test_state_wrap_withAssetRoleRestriction () public {
179
-
180
179
// ===== setup =====
181
180
182
181
vm.startPrank (deployer);
183
182
multiwrap.revokeRole (keccak256 ("ASSET_ROLE " ), address (0 ));
184
183
185
- for ( uint i = 0 ; i < wrappedContent.length ; i += 1 ) {
184
+ for ( uint256 i = 0 ; i < wrappedContent.length ; i += 1 ) {
186
185
multiwrap.grantRole (keccak256 ("ASSET_ROLE " ), wrappedContent[i].assetContract);
187
186
}
188
187
You can’t perform that action at this time.
0 commit comments