blockful-io / external-resolver-dapp

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

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

Open FrancoAguzzi opened 1 week ago

FrancoAguzzi commented 1 week 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