komputing / KEthereum

Kotlin library for Ethereum
MIT License
350 stars 73 forks source link

ENS resolver responds with wrong address for domain #130

Closed abdrasulov closed 1 year ago

abdrasulov commented 2 years ago

Trying to resolve the domain name "deepak.eth":

val address = ens.getAddress(ENSName("deepak.eth"))

It responds with address 0x69c488Bcda156379B6661f08A35dB627E5D467Dd. But the expected address is 0x6942049509693fbb63d7F1395DAe5cFE1CCEc1BA (https://app.ens.domains/name/deepak.eth/details)

ligi commented 1 year ago

what RPC did you use?

ligi commented 1 year ago

background: I guess the node you speak to hangs somewhere (e.g. at the merge point as the IN3 nodes do currently) - and so you get a old result

abdrasulov commented 1 year ago

what RPC did you use?

The default one. The ENS instance was initialized like this:

val ens = ENS(getMin3RPC())
ligi commented 1 year ago

this is the problem then - it uses the incubed RPC - unfortunately the incubed RPC never made it through the merge as blockchains.llc killed the project ;-( Use another RPC and it should work fine