Skip to content

Commit 11d24d7

Browse files
committed
updates
1 parent e7261fa commit 11d24d7

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

src/Libraries/LibAsset.sol

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ library LibAsset {
2626

2727
address internal constant NATIVE_ASSETID = NULL_ADDRESS;
2828

29-
/// @dev address of the ExtcodeHelper contract
30-
address internal constant EXT_CODE_HELPER =
31-
0x7000000000000000000000000000000000000000;
32-
3329
/// @dev EIP-7702 delegation designator prefix for Account Abstraction
3430
bytes3 internal constant DELEGATION_DESIGNATOR = 0xef0100;
3531

src/Libraries/LibSwap.sol

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ import { InvalidContract, NoSwapFromZeroBalance, InsufficientBalance } from "../
88
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
99

1010
library LibSwap {
11-
address internal constant EXT_CODE_HELPER =
12-
address(uint160(uint256(keccak256("EXT_CODE_HELPER"))));
13-
1411
struct SwapData {
1512
address callTo;
1613
address approveTo;
@@ -32,8 +29,7 @@ library LibSwap {
3229
);
3330

3431
function swap(bytes32 transactionId, SwapData calldata _swap) internal {
35-
if (!LibAsset.isContractWithHelper(_swap.callTo, EXT_CODE_HELPER))
36-
revert InvalidContract();
32+
if (!LibAsset.isContract(_swap.callTo)) revert InvalidContract();
3733
uint256 fromAmount = _swap.fromAmount;
3834
if (fromAmount == 0) revert NoSwapFromZeroBalance();
3935
uint256 nativeValue = LibAsset.isNativeAsset(_swap.sendingAssetId)

0 commit comments

Comments
 (0)