Hello,
I have possibly discovered error in web3x. I am using Metamask 6.6.1 and web3x 3.0.11. When I tried to sign a message via
const userAddress = Address.fromString('0x123...')
const eth = Eth.fromCurrentProvider()
const personal = new Personal(eth.provider)
const signature = await personal.sign('a2000ab', userAddress, '')
I got error MetaMask - RPC Error: TypeError: e.toLowerCase is not a function, that happened inside of metamask. After some debugging I found that it works when i convert address to lowercased string like this:
I assume function sign() is missing this conversion to lowercase string. I could create pull request for this but I am not sure that wouldn't break other combination of Metamask + web3x versions. @xf00f can you have look at this, please?
Hello, I have possibly discovered error in web3x. I am using Metamask 6.6.1 and web3x 3.0.11. When I tried to sign a message via
I got error
MetaMask - RPC Error: TypeError: e.toLowerCase is not a function
, that happened inside of metamask. After some debugging I found that it works when i convert address to lowercased string like this:I assume function
sign()
is missing this conversion to lowercase string. I could create pull request for this but I am not sure that wouldn't break other combination of Metamask + web3x versions. @xf00f can you have look at this, please?