Update contracts/mainnet/connectors/socket/main.sol

This commit is contained in:
Thrilok kumar 2022-06-10 22:49:38 +05:30 committed by GitHub
parent 22c7cd8ef4
commit c106c00090
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,8 +37,7 @@ abstract contract SocketConnectorResolver is SocketConnectorBridge {
* @param _route route number
*/
function getAllowanceTarget(uint _route) internal view returns (address _allowanceTarget) {
ISocketRegistry registryContr = ISocketRegistry(0xc30141B657f4216252dc59Af2e7CdB9D8792e1B0);
ISocketRegistry.RouteData memory data = registryContr.routes(_route);
ISocketRegistry.RouteData memory data = ISocketRegistry(registry).routes(_route);
return data.route;
}
}