Skip to content

Commit 8cce4be

Browse files
Krishang NadgaudaKrishang Nadgauda
authored andcommitted
run prettier
1 parent cca0980 commit 8cce4be

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

contracts/multiwrap/Multiwrap.sol

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

src/test/Multiwrap.t.sol

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)