From d4bca5699b2c183acc9a5f5b3646643bfac9d3ba Mon Sep 17 00:00:00 2001 From: josojo Date: Wed, 3 Jan 2024 21:56:58 +0100 Subject: [PATCH] linting --- contracts/ForkableBridge.sol | 2 +- test/ForkableBridge.t.sol | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/contracts/ForkableBridge.sol b/contracts/ForkableBridge.sol index edf273de..38c65292 100644 --- a/contracts/ForkableBridge.sol +++ b/contracts/ForkableBridge.sol @@ -62,7 +62,7 @@ contract ForkableBridge is if (to != children[0] && to != children[1]) { revert InvalidDestinationForHardAsset(); } - if(token==gasTokenAddress){ + if (token == gasTokenAddress) { revert GasTokenIsNotHardAsset(); } IERC20(token).transfer(to, amount); diff --git a/test/ForkableBridge.t.sol b/test/ForkableBridge.t.sol index ae266dea..1f64c1f7 100644 --- a/test/ForkableBridge.t.sol +++ b/test/ForkableBridge.t.sol @@ -504,9 +504,7 @@ contract ForkableBridgeTest is Test { to ); - vm.expectRevert( - IForkableBridge.GasTokenIsNotHardAsset.selector - ); + vm.expectRevert(IForkableBridge.GasTokenIsNotHardAsset.selector); vm.prank(hardAssetManger); forkableBridge.transferHardAssetsToChild( address(gasTokenAddress),