blockful-io / external-resolver-dapp

https://external-resolver-dapp.vercel.app
2 stars 2 forks source link

feat: update `getResolverAddress` function to return diff OffChain resolver addresses based on current chain #183

Closed FrancoAguzzi closed 2 months ago

FrancoAguzzi commented 2 months ago

Feature Request

Describe the Feature Request

This feature aims to enable both mainnet and testnet DB resolvers to be used.

Describe Preferred Solution

User will use the same Off-chain resolver button to select the DB resolver during a name registration, the difference lies on the getResolverAddress function, which will get the information of the currentChain and return the correct Off-chain resolver addresses based on the chain the user is using to do the name registration.

Related Code

useNameRegistration.tsx constants.tsx