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
154154 string calldata _uriForWrappedToken ,
155155 address _recipient
156156 ) 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 ) {
160159 _checkRole (ASSET_ROLE, _tokensToWrap[i].assetContract);
161160 }
162161 }
Original file line number Diff line number Diff line change @@ -176,13 +176,12 @@ contract MultiwrapTest is BaseTest {
176176 * Only assets with ASSET_ROLE can be wrapped.
177177 */
178178 function test_state_wrap_withAssetRoleRestriction () public {
179-
180179 // ===== setup =====
181180
182181 vm.startPrank (deployer);
183182 multiwrap.revokeRole (keccak256 ("ASSET_ROLE " ), address (0 ));
184183
185- for ( uint i = 0 ; i < wrappedContent.length ; i += 1 ) {
184+ for ( uint256 i = 0 ; i < wrappedContent.length ; i += 1 ) {
186185 multiwrap.grantRole (keccak256 ("ASSET_ROLE " ), wrappedContent[i].assetContract);
187186 }
188187
You can’t perform that action at this time.
0 commit comments