HelixNetwork / pendulum-sdk

The official Pendulum SDK.
https://hlx.ai
MIT License
5 stars 8 forks source link

getBalances for #44

Open dnck opened 5 years ago

dnck commented 5 years ago

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: