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

Client doesn't check if zero keys exist for acc before sending transaction #144

Open
Bargsteen opened this issue May 19, 2022 · 0 comments
Labels
[Type] Bug Something isn't working

Comments

@Bargsteen
Copy link
Contributor

Bargsteen commented May 19, 2022

Bug Description
Trying to send a transaction from an account which doesn't have any keys does not produce a warning or error.

This error can be triggered by either manually fiddling with the key files or by importing accounts without keys (i.e. malformed backups).

Steps to Reproduce

  1. Import valid account A from the mobile wallet
  2. Remove all the keys for account A (but not the whole account folder)
    So in /Users/<user>/.config/concordium/accounts:
    ...
    ├── 3mi95ChLEaN8ZhXy1mpY6CMtGyL54YZEYWRcyjbSNPCqGiLvwG
    |   └── encSecretKey.json          // Only file in account `A` folder
    ├── 3mwfniHrUDUPsYDu8TmQvfQVppRoe6UYwJbxTWUMrDexFNigcP
    ...
    
  3. Send a transaction with account A: concordium-client transaction send --amount 1 --sender A --receiver B

Expected Result
Account A does not have any keys. Try reimporting the keys again (perhaps making a new mobile export).

Actual Result

Using default energy amount of 401 NRG.
Sending 2000.000000 CCD from '3mi95ChLEaN8ZhXy1mpY6CMtGyL54YZEYWRcyjbSNPCqGiLvwG' ('K3') to '37DWpxKAGAk4BkEoY9uAE8A1KKUSHsrS8HAjVj8uFuyWBNPMyD' ('K1').
Allowing up to 401 NRG to be spent as transaction fee.
Transaction expires on Thu, 19 May 2022 09:50:02 UTC.
Confirm [yN]: y
y
concordium-client: user error (gRPC error: Deserialization error)

Versions

  • Software Version: 4.0.3
  • OS: macOS

┆Issue is synchronized with this Jira Task by Unito

@Bargsteen Bargsteen added the [Type] Bug Something isn't working label May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant