Skip to content

Commit

Permalink
Enable CCIP Read for ENS resolvers (#2478).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Mar 9, 2022
1 parent 26cdbab commit be518c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/providers/src.ts/base-provider.ts
Expand Up @@ -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") ])
};

Expand Down

0 comments on commit be518c3

Please sign in to comment.