Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

getBalances for #44

Open
dnck opened this issue Sep 12, 2019 · 0 comments
Open

getBalances for #44

dnck opened this issue Sep 12, 2019 · 0 comments

Comments

@dnck
Copy link
Contributor

dnck commented Sep 12, 2019

Expected Behavior

(1) When getAccountData(...) is passed a seed that has an address containing balance, the reported balance should be shown (and summed across all addresses belonging to the seed if necessary).

(2) When passed a value containing address from a seed, getBalances(...) should return the correct balance for that address.

Current Behavior

Currently, getBalances(...) returns the correct balance for this address,

6f3b6f0d3d7a15dca8935a0bec7bfb0aee1edc2de319eb16f6cd71892d40f8892fd05e28

but when the seed,

d2ebccb3cff4ea6a6c7ba4d2528cf60c14e0f4d1af762bdda9442efb94cdc857

is passed to getAccountData(...), the return balance is 0.

Steps to Reproduce

Download the Wallet.

Create a new account with your own seed:

Send some value to this 0 valued account.

Wait for status of receiving account to clear pending transaction and update balance.

Now, obtain the address that has new value. Go to settings > view addresses, and copy the address with balance.

Paste the address with balance into the getBalances API method. Check the result.

Now check the return results of getAccountData with the seed of the account you created and just funded.

Version:

  • Operating System: Ubuntu bionic beaver / MacOS
  • Clean install of helix-lib master branch, Wallet downloaded on 10th Sept 2019.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant