-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MetaMask 8 only - RPC Error: The requested account and/or method has not been authorized by the user. #8922
Comments
|
I found the issue: What a bummer, metamask team fix it up that either: accepts checksummed address, like you did in v7, or accept both, lowercased and checksummed |
@rstormsf it should accept addresses regardless of casing, so this is a bug, that we will fix. |
Could you please share a more detailed snippet from your dapp code? Specifically, it'd be helpful to see example values of the following: Edit: For any addresses, I just want to know where they come from (e.g. |
@rekmarks the validation check for authorized accounts don't respect checksummed addresses if I use |
@rstormsf this issue will be closed by #8923, which resolves the issue. That PR will be included in As an aside, for calls to ethereum.sendAsync({
method: 'eth_sendTransaction',
params: [{ to, from, value }],
jsonrpc: '2.0',
from
},
(err, result) => { /* stuff */ }
) You can just do this: ethereum.sendAsync({
method: 'eth_sendTransaction',
params: [{ to, from, value }],
},
(err, result) => { /* callback */ }
)
// or, in MetaMask v8
try {
const transactionHash = await ethereum.request({
method: 'eth_sendTransaction',
params: [{ to, from, value }],
})
catch (error) {
// handle error
} |
@rekmarks true. I left it as a legacy code that works with other web3 providers (Forks of old metamask, etc) |
@rstormsf Yeah, that makes sense! I believe that the next significant EIP (after EIP-1193, which is past its review period end) related to the JavaScript provider is a way to quickly determine the capabilities/interface of a particular provider. For now, the presence of the |
In new metamask 8, my dapps stopped working and the issue is
MetaMask - RPC Error: The requested account and/or method has not been authorized by the user.
what are the breaking changes? what should I look for?
The text was updated successfully, but these errors were encountered: