-
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
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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: