diff --git a/examples/router/contracts/ConnectedRouter.sol b/examples/router/contracts/ConnectedRouter.sol index 81594ed..66e9592 100644 --- a/examples/router/contracts/ConnectedRouter.sol +++ b/examples/router/contracts/ConnectedRouter.sol @@ -83,13 +83,4 @@ contract ConnectedRouter is Ownable { receive() external payable {} fallback() external payable {} - - function bytesToAddress( - bytes memory b - ) internal pure returns (address addr) { - require(b.length == 20, "Invalid bytes length for address"); - assembly { - addr := mload(add(b, 20)) - } - } }