From ddb8e3052d372e06e79a20b6d1d7d07cfa346d4a Mon Sep 17 00:00:00 2001 From: ahramy Date: Thu, 7 Nov 2024 11:12:10 -0800 Subject: [PATCH] Update InterchainTokenFactory.sol --- contracts/InterchainTokenFactory.sol | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/contracts/InterchainTokenFactory.sol b/contracts/InterchainTokenFactory.sol index 8611be83..93bc8d38 100644 --- a/contracts/InterchainTokenFactory.sol +++ b/contracts/InterchainTokenFactory.sol @@ -307,17 +307,4 @@ contract InterchainTokenFactory is IInterchainTokenFactory, ITokenManagerType, M tokenId = deployRemoteCanonicalInterchainToken(originalTokenAddress, destinationChain, gasValue); } - - function addressToBytes(address _address) public pure returns (bytes memory) { - return abi.encodePacked(_address); - } - - function bytesToAddress(bytes memory data) public pure returns (address) { - require(data.length == 20, 'Invalid bytes length for address'); - address addr; - assembly { - addr := mload(add(data, 20)) - } - return addr; - } }