Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
makoto committed Sep 13, 2023
1 parent f65bf55 commit 768c3f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion contracts/ERC3668Resolver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ contract ERC3668Resolver is IExtendedResolver, IMetadataResolver, SupportsInterf

) = ICcipResponseVerifier(_ccipVerifier.verifierAddress).metadata(name);

return (resolverName, coinType, graphqlUrl, storageType, storageLocation, "");
return (resolverName, coinType, graphqlUrl, storageType, _ccipVerifier.verifierData, "");
}

/*
Expand Down
9 changes: 3 additions & 6 deletions contracts/verifier/optimism-bedrock/BedrockCcipVerifier.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,15 @@ import {convertEVMChainIdToCoinType} from "../../coinType/Ensip11CoinType.sol";

abstract contract BedrockCcipVerifier is CcipResponseVerifier {
IBedrockProofVerifier public immutable bedrockProofVerifier;
address public immutable target;

constructor(
address _owner,
string memory _graphQlUrl,
string memory _resolverName,
uint256 _l2ResolverChainID,
IBedrockProofVerifier _bedrockProofVerifier,
address _target
IBedrockProofVerifier _bedrockProofVerifier
) CcipResponseVerifier(_owner, _graphQlUrl, _resolverName, _l2ResolverChainID) {
bedrockProofVerifier = _bedrockProofVerifier;
target = _target;
}

/**
Expand Down Expand Up @@ -81,8 +78,8 @@ abstract contract BedrockCcipVerifier is CcipResponseVerifier {
convertEVMChainIdToCoinType(l2ResolverChainID), // coinType according to ENSIP-11 for chain id 420
this.graphqlUrl(), // the GraphQL Url
uint8(0), // storage Type 0 => EVM
abi.encodePacked(address(target)), // storage location => resolver address
abi.encodePacked(address(0)) // context => l2 resolver address
abi.encodePacked(address(0)), // storage location => resolver address
abi.encodePacked(address(0)) // context => Kept for compatibility
);
}
}

0 comments on commit 768c3f1

Please sign in to comment.