blockful-io / external-resolver

This project aims to scale the Ethereum Name Service (ENS) by consolidating existing patterns and proofs of concept into a unified and production-ready codebase.
MIT License
10 stars 3 forks source link

DB Resolver: set primary name #155

Closed pikonha closed 1 month ago

pikonha commented 1 month ago

DB Resolver: set primary name

All Submissions:

Description

The flow of fetching the primary name involves calling the Universal Resolver which relies on the resolver(node, encodedFunc) function of the domain's resolver.

The current implementation was causing the resolve with name(bytes32) function encoded as an argument to revert as an OffchainLookup which is supported by the Universal Resolver. However, since the setName cannot be handled off-chain because the ENS contracts don't support the EIP-5559 yet, we had to implement both the setName and name function on-chain. Therefore, we should not revert with OffchainLookup.

Related Issue

149

Changes

Changes to Core Features:

Additional Notes