From f9017ccf4139410cc7905f1226ffc57f9ff7685c Mon Sep 17 00:00:00 2001 From: Jordan Hagan Date: Tue, 9 Jan 2024 09:37:29 +1100 Subject: [PATCH] Address PR feedback on if comment placement --- contracts/searcher-direct/FastLaneSearcherDirect.sol | 2 +- contracts/searcher-proxy/FastLaneSearcherProxy.sol | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/searcher-direct/FastLaneSearcherDirect.sol b/contracts/searcher-direct/FastLaneSearcherDirect.sol index 75b90f8..432983d 100644 --- a/contracts/searcher-direct/FastLaneSearcherDirect.sol +++ b/contracts/searcher-direct/FastLaneSearcherDirect.sol @@ -34,8 +34,8 @@ abstract contract FastLaneSearcherDirectContract is ReentrancyGuard { // Execute the searcher's intended function (bool success, bytes memory returnedData) = address(this).call(_searcherCallData); - // If the call didn't turn out the way you wanted, revert either here or inside your MEV function itself if (!success) { + // If the call didn't turn out the way you wanted, revert either here or inside your MEV function itself return (false, returnedData); } diff --git a/contracts/searcher-proxy/FastLaneSearcherProxy.sol b/contracts/searcher-proxy/FastLaneSearcherProxy.sol index d56c261..fe0789e 100644 --- a/contracts/searcher-proxy/FastLaneSearcherProxy.sol +++ b/contracts/searcher-proxy/FastLaneSearcherProxy.sol @@ -38,8 +38,8 @@ contract FastLaneSearcherProxyContract is ReentrancyGuard { // to allow this contract. (bool success, bytes memory returnedData) = searcherContract.call(_searcherCallData); - // If the call didn't turn out the way you wanted, revert either here or inside your MEV function itself if (!success) { + // If the call didn't turn out the way you wanted, revert either here or inside your MEV function itself return (false, returnedData); }