BeamMW / beam-ui

Beam Desktop Wallet (Win / Mac / Linux)
https://beam.mw/
Apache License 2.0
27 stars 23 forks source link

wallet API returns wrong address and displays wrong address in address book/receive screen #1029

Open Maxnflaxl opened 11 months ago

Maxnflaxl commented 11 months ago

Describe the bug When creating a new address for the GUI wallet via the wallet API, the API returns the wrong address, but creates

To Reproduce Steps to reproduce the behavior: 1 - start and open wallet 2 - start wallet API 3 - use this 4 - wallet API returns somethimg like this:

{
  id: 1,
  jsonrpc: '2.0',
  result: '28NVd2b7qBJRLiL3A1H9MYTL2g4SW36kjjffo4PiVS25sUgGjAt5i4ATQG9QC5K2tiP2iK8VCyS6gGVS2ADc7gFp4LjQon2nS3LYuhSnCawhDrcyDepF2iezQdnjFrRX958ap1eD'
}

Expected behavior wallet API returns SBBS address like this:

{
    "jsonrpc" : "2.0", 
    "id" : 1,
    "result" : "472e17b0419055ffee3b3813b98ae671579b0ac0dcd6f1a23b11a75ab148cc67"
}

Versions

Additional context In the address book I see the SBBS address in both the 'edit address' and 'receive' screen(here under SBBS Address). It also shows me another address: 28NVd2b7qBJRLiL3A1H9MYTL2g4SW36kjjffo4PiVS25sUgGjAt5i4ATQG9QC5K2tiP2iK8VCyS6gGVS2ADc7gFp4LjQon2nS3LYuhSnCawhDrcyDepF2iezQdnjFrRX958cJ1cG

(As far as I can see )None of the addresses in the address book have this address, after clicking on 'receive' the address "glitches" and changes from the just created 28NV..1ed to the 28NV..cG address.

https://github.com/BeamMW/beam-ui/assets/63856008/f29a70fc-1077-4a84-9e62-af160f1975f5