Replies: 1 comment 2 replies
-
@atenger : Someone gave that address an ENS name thats why its showing like that, rest assured everything else is fine. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm seeing some strange behavior using the ConnectButton from the web3uikit and I'm trying to understand what's going on. I'm currently in Lesson 10: NextJS Smart Contract Lottery (Full Stack / Front End), at about the 17:40 mark. We're using Moralis and web3uikit to create a Header to replace the ManualHeader we just worked on.
I followed Patrick's instructions, but when I started playing with my UI on localhost, the web3uikit ConnectButton started displaying different ENS names instead of my wallet address when I changed the connection between different networks. For example, I started on localhost (hardhat) and it showed my address as being connected, but when I switched to Rinkeby to see what would happen the button changed to show snoopy.eth as being connected. Anyone know what's going on behind the scenes?
Here are sceenshots of what I'm seeing.
Screenshot 1:
Smart Contract Lottery UI connected to my wallet on Hardhat local network - looks good!

Screenshot 2:
I changed to Ropsten network, the chainId of the network has changed (see console), but the ConnectButton now shows being connected to an address like dhruv...al.eth instead of my wallet address. Looks odd!

Screenshot 3:
I changed to Rinkeby network, the chainId of the network changed, but now ConnectButton says its connected to snoopy.eth.

Beta Was this translation helpful? Give feedback.
All reactions