This repository was archived by the owner on Mar 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Problem deleting account when checksummed address is equal to lowercase address #5049
Closed
1 task done
Comments
andreistefanwork
pushed a commit
to andreistefanwork/web3.js
that referenced
this issue
May 18, 2022
…lowercase are equal web3#5049
andreistefanwork
pushed a commit
to andreistefanwork/web3.js
that referenced
this issue
May 18, 2022
…lowercase are equal web3#5049
16 tasks
Hi @UnknownRJ! I am also able to reproduce the issue; I'm happy to help and I have tried fixing the problem & created a PR Can you please have a look if everything looks fine? Thanks! |
16 tasks
andreistefanwork
pushed a commit
to andreistefanwork/web3.js
that referenced
this issue
May 18, 2022
…lowercase are equal web3#5049
andreistefanwork
added a commit
to andreistefanwork/web3.js
that referenced
this issue
May 22, 2022
…lowercase are equal web3#5049 Signed-off-by: Andrei Stefan <andrei.stefan.work@gmail.com>
andreistefanwork
added a commit
to andreistefanwork/web3.js
that referenced
this issue
Jun 4, 2022
…lowercase are equal web3#5049
andreistefanwork
added a commit
to andreistefanwork/web3.js
that referenced
this issue
Jun 16, 2022
…lowercase are equal web3#5049
andreistefanwork
added a commit
to andreistefanwork/web3.js
that referenced
this issue
Jun 23, 2022
…lowercase are equal web3#5049
andreistefanwork
added a commit
to andreistefanwork/web3.js
that referenced
this issue
Jun 23, 2022
…lowercase are equal web3#5049
andreistefanwork
added a commit
to andreistefanwork/web3.js
that referenced
this issue
Jun 23, 2022
…lowercase are equal web3#5049
andreistefanwork
added a commit
to andreistefanwork/web3.js
that referenced
this issue
Jun 28, 2022
…lowercase are equal web3#5049
Merged
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is there an existing issue for this?
Current Behavior
When you add an account to a wallet, it creates:
So you can access using any of those keys.
When you want to remove an account it does the same process, but when you have a checksummed that is equal to lowercase, the line (681) that access the lowercase address will throw an exception because it doesn't exists anymore.
Uncaught TypeError TypeError: Cannot set properties of undefined (setting 'privateKey')
Expected Behavior
No error.
Steps to Reproduce
https://github.com/ChainSafe/web3.js/blob/2c0324af2da467ee1acb72452f20000e916e4306/packages/web3-eth-accounts/src/index.js#L673-L693
Web3.js Version
1.7.3
Environment
Anything Else?
No response
The text was updated successfully, but these errors were encountered: