trust-web3-provider icon indicating copy to clipboard operation
trust-web3-provider copied to clipboard

[Bug] Ethereum Provider - Address is not in lower case

Open Grinion opened this issue 2 years ago • 0 comments

Hello,

At runtime, this.address parameter contains a value that is not in the lowercase - therefore this condition cannot be true. https://github.com/trustwallet/trust-web3-provider/blob/2bfd36ade2ac2275782969dcae5ac6bf3d608054/src/ethereum_provider.js#L305

In the method setAddress that sets this value, it is converted to lowercase. There may be other places where this value is set. https://github.com/trustwallet/trust-web3-provider/blob/2bfd36ade2ac2275782969dcae5ac6bf3d608054/src/ethereum_provider.js#L31C3-L31C13

Grinion avatar Feb 22 '24 18:02 Grinion