Skip to content

Commit

Permalink
fixed lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
satyajeetkolhapure committed Nov 13, 2024
1 parent 9e0541b commit 3321d59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions contracts/src/abstracts/AbstractPortal.sol
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ abstract contract AbstractPortal is IPortal {
moduleRegistry = ModuleRegistry(router.getModuleRegistry());
portalRegistry = PortalRegistry(router.getPortalRegistry());
}

/**
* @notice Withdraw funds from the Portal
* @param to the address to send the funds to
Expand All @@ -52,7 +52,7 @@ abstract contract AbstractPortal is IPortal {
*/
function withdraw(address payable to, uint256 amount) external virtual {
if (msg.sender != portalRegistry.getPortalByAddress(address(this)).ownerAddress) revert OnlyPortalOwner();
(bool s, ) = to.call{value: amount}("");
(bool s, ) = to.call{ value: amount }("");
if (!s) revert WithdrawFail();
}

Expand Down
2 changes: 1 addition & 1 deletion contracts/test/DefaultPortal.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ contract DefaultPortalTest is Test {

// Verify the recipient's balance has increased by the withdrawal amount
assertEq(recipient.balance, recipientInitialBalance + withdrawAmount);
}
}

function test_withdrawFail_OnlyPortalOwner() public {
// Attempt withdrawal by a non-owner address
Expand Down

0 comments on commit 3321d59

Please sign in to comment.