-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Error: WalletMiddleware - Invalid "from" address when try to web3.eth.sign() #6262
Comments
I have the same problem |
@mrejmicz did you figure this out? |
@arnigudj Unfortunately not. I had this problem for last month. Any angular CLI, metamask, Web3 updates/version changes didn't help yet |
Are you all including the user's active address in the See these docs for more info. cc @tmashuang |
@bdresser yes, passing the from address as described in the docs and getting that error. I'm getting this issue since I upgraded web3 to 1.0.0-beta.48. @mrejmicz I solved by installing the beta.37 make sure that it's You can also try using const web3 = new Web3(Web3.givenProvider);
const accounts = await web3.eth.getAccounts();
console.log(accounts);
const sign = await web3.eth.personal.sign('dataToSign', accounts[0]); |
@arnigudj Trying to sign with web3.eth.personal.sign works properly, but on beta.38 this method required 3 parameters
It's a little bit strange, because 'password' can be any string, and don't be used at all :) |
@mrejmicz great find. summary: for |
closing as not a metamask issue (again see web3/web3.js#2528) |
Describe the bug
I am trying to write small DAPP with Angular 7, web3 & MetaMask.
When I call sign any message with my ETH account, I get
MetaMask - RPC Error: Error: WalletMiddleware - Invalid "from" address.
error.I don't change active accounts, this is my only one accounts in MetaMask, I tried to get this accounts, from web3.eth.getAccounts()[0], manually, etc. Unfortunately nothing helps.
To Reproduce
web3.eth.getAccounts() properly return my account.
I've disable privacy mode on MetaMask (not need to
enable()
)Expected behavior
I should be able to sign the message correctly.
Screenshots
Browser details (please complete the following information):
The text was updated successfully, but these errors were encountered: