From 3321d59245dbf9ef674989840a49c837340c75c1 Mon Sep 17 00:00:00 2001 From: Satyajeet Kolhapure Date: Wed, 13 Nov 2024 11:22:42 +0000 Subject: [PATCH] fixed lint issues --- contracts/src/abstracts/AbstractPortal.sol | 4 ++-- contracts/test/DefaultPortal.t.sol | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/src/abstracts/AbstractPortal.sol b/contracts/src/abstracts/AbstractPortal.sol index 16a13fef..388a283c 100644 --- a/contracts/src/abstracts/AbstractPortal.sol +++ b/contracts/src/abstracts/AbstractPortal.sol @@ -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 @@ -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(); } diff --git a/contracts/test/DefaultPortal.t.sol b/contracts/test/DefaultPortal.t.sol index b6b2fb7e..515585b6 100644 --- a/contracts/test/DefaultPortal.t.sol +++ b/contracts/test/DefaultPortal.t.sol @@ -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