Skip to content

Commit

Permalink
Typo-2
Browse files Browse the repository at this point in the history
  • Loading branch information
sshmatrix committed Aug 14, 2023
1 parent cf762c6 commit 1d9e3db
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions src/CCIP2ETH.sol
Original file line number Diff line number Diff line change
Expand Up @@ -282,44 +282,6 @@ contract CCIP2ETH is iCCIP2ETH {
iCCIP2ETH.__callback.selector, // Callback function
abi.encode(_node, block.number - 1, _checkhash, _domain, _recType, _path, name, request)
);
if (_signer != iCCIP2ETH(this).getSigner(signRequest, _recordSignature)) {
revert InvalidRequest("BAD_SIGNED_RECORD");
}
} else if (_type == iCallbackType.signedDAppService.selector) {
if (result[0] == 0x0 || result[result.length - 1] != 0x0) {
revert InvalidRequest("BAD_DAPP_SERVICE_REQUEST");
}
(bytes4 _req, bytes32 _redirectNamehash, bytes memory _redirectRequest, string memory _redirectDomain) =
iCCIP2ETH(this).redirectService(result, _request);
signRequest = string.concat(
"Requesting Signature To Install DApp Service\n",
"\nOrigin: ",
_domain, // e.g. ens.domain.eth
"\nDApp: ",
_redirectDomain, // e.g. app.ens.eth
"\nExtradata: 0x",
gateway.bytesToHexString(abi.encodePacked(keccak256(result)), 0),
"\nSigned By: eip155:1:",
gateway.toChecksumAddress(_signer)
);
if (_signer != iCCIP2ETH(this).getSigner(signRequest, _recordSignature)) {
revert InvalidRequest("BAD_DAPP_SIGNATURE");
}
address _resolver = ENS.resolver(_redirectNamehash);
if (iERC165(_resolver).supportsInterface(iENSIP10.resolve.selector)) {
return iENSIP10(_resolver).resolve(result, _redirectRequest);
} else if (iERC165(_resolver).supportsInterface(_req)) {
bool ok;
(ok, result) = _resolver.staticcall(_redirectRequest);
if (!ok) {
revert InvalidRequest("BAD_RESOLVER");
}
} else {
revert InvalidRequest("BAD_RESOLVER_FUNCTION");
}
} else {
/// @dev Future features in __fallback
return gateway.__fallback(response, extradata);
}
}

Expand Down

0 comments on commit 1d9e3db

Please sign in to comment.