I am getting a problem when I run this statement in the console window (from browser) to get signature of the account:
ethereum.request({ method: "personal_sign", params: [account, hash] });
I did not used to have this problem, it works fine and returns a promise with the digital signature of the account (from Metamask). It would open up Metamask, I would do a digital signing and return the result of the digital signature to the promise.
Now it reports an error whenever I run the statement. The error message is:
code: -32602 message: "Invalid parameters: must provide an Ethereum address."
Has something changed? I could not find any other details from ethereum.org or Metamask. If anyone has some knowledge on this, what seems to be the problem?