From 36d854bdd1cb8b640b2e9f2701a5d30d992b89e4 Mon Sep 17 00:00:00 2001 From: Shivaansh Kapoor Date: Wed, 10 Jul 2024 17:46:20 +0400 Subject: [PATCH] fix-lint --- contracts/base/BasePaymaster.sol | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/contracts/base/BasePaymaster.sol b/contracts/base/BasePaymaster.sol index fad82e2..8a6f1a0 100644 --- a/contracts/base/BasePaymaster.sol +++ b/contracts/base/BasePaymaster.sol @@ -103,14 +103,6 @@ abstract contract BasePaymaster is IPaymaster, SoladyOwnable { return entryPoint.balanceOf(address(this)); } - function isContract(address _addr) internal view returns (bool) { - uint256 size; - assembly ("memory-safe") { - size := extcodesize(_addr) - } - return size > 0; - } - //sanity check: make sure this EntryPoint was compiled against the same // IEntryPoint of this paymaster function _validateEntryPointInterface(IEntryPoint _entryPoint) internal virtual { @@ -170,4 +162,12 @@ abstract contract BasePaymaster is IPaymaster, SoladyOwnable { function _requireFromEntryPoint() internal virtual { require(msg.sender == address(entryPoint), "Sender not EntryPoint"); } + + function isContract(address _addr) internal view returns (bool) { + uint256 size; + assembly ("memory-safe") { + size := extcodesize(_addr) + } + return size > 0; + } }