Skip to content
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

"cannot locate account for address: [wallet address]" error when sending TX #10423

Closed
Serhy opened this issue Apr 24, 2020 · 7 comments
Closed

Comments

@Serhy
Copy link
Contributor

Serhy commented Apr 24, 2020

Bug Report

Problem

It was appeared while sending TX (from Wallet and 1-1 chat). No steps to reproduce so far for

Expected behavior

No errors when sending TXs

Actual behavior

"cannot locate account for address: [wallet address]" error when sending TX

Notes

For the developer who will be investigating. Is it related to another PR? Tips on where to start?

Reproduction

  • Open Status with funds
  • Send transaction

Additional Information

  • Status version: release 1.2/develop
  • Operating System: Android and iOS

Logs

TBD...

@Serhy Serhy added bug labels Apr 24, 2020
@churik
Copy link
Member

churik commented Apr 24, 2020

@ceripower
do you still have this issue?
if yes, would you mind to send us logs via shaking your phone?

@ceripower
Copy link

Hey @churik! Thanks for checking in.

I needed to make the transaction urgently so I deleted the app, reinstalled it and tried again and it worked then. Apologies I can't retrieve a log for you relating to the original issue (or is it still helpful if I send something from the now-functioning app?)

@churik
Copy link
Member

churik commented Apr 24, 2020

No, thanks! please send us logs if you have this issue in the future.

@flexsurfer
Copy link
Member

this error is happening here in status-go https://github.com/status-im/status-go/blob/8b61d92d5834215fb06532c527b0bead7b4625d9/account/accounts.go#L159 it can't find KeyFile

@flexsurfer
Copy link
Member

as an assumption problem might be in the checksummed address @gravityblast wdyt ? how do we store and finding keyfiles?

@flexsurfer
Copy link
Member

flexsurfer commented Apr 27, 2020

for example, if we're trying to sign tx with checksummed and not address in the from the field will be any difference do you lowercase address?

@gravityblast
Copy link
Member

@flexsurfer I don't think it can be related because the address received is somehow sanitized with:
addressObj := types.BytesToAddress(types.FromHex(address))
And then the comparison is: types.HexToAddress("0x"+accountKey.Address).Hex() == addressObj.Hex()

so they are always converted to an Address object and then serialized back to hex in the same way.

It's also strange that it happens only now, it would be easy if we can reproduce it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants