You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I'm a dapp developer. I got undefined when I was trying to get chainId by using window.web3.currentProvider.chainId or window.ethereum.chainId on MetaMask Mobile. It works well on Chrome.
chainId
property onprovider | window.web3 | window.ethereum
returns an incorrect non-hex string, at least on Android 7.For example
"Ox1"
for mainnet instead of"0x1"
, that's letter "O" in there. Provider injected by desktop browser extension has correctchainId
The text was updated successfully, but these errors were encountered: