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),