Skip to content

Commit

Permalink
Update InterchainTokenFactory.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
ahramy committed Nov 7, 2024
1 parent 9c0d516 commit ddb8e30
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions contracts/InterchainTokenFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit ddb8e30

Please sign in to comment.