Enable CCIP Read for ENS resolvers (#2478).

This commit is contained in:
Richard Moore 2022-03-09 14:00:23 -05:00
parent 26cdbab59b
commit be518c32ec

View File

@ -364,9 +364,11 @@ export class Resolver implements EnsResolver {
}
async _fetch(selector: string, parameters?: string): Promise<null | string> {
// e.g. keccak256("addr(bytes32,uint256)")
const tx = {
to: this.address,
ccipReadEnabled: true,
data: hexConcat([ selector, namehash(this.name), (parameters || "0x") ])
};