-
Notifications
You must be signed in to change notification settings - Fork 24
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
anchorEarn.balance error #10
Comments
It seems to happen when the account is recently created and doesn't have any funds. terra-anchor-earn.js account_balance: getNaturalDecimals(accountBalance[0].amount.toString()), In this line the var accountBalance is undefined and can't access to the [0] item |
Thanks for the report, we will reflect that on the new release. |
Is this issue resolved ? I am still facing the error. |
Having the same issue, seemingly not resolved yet. |
@SmartAppsX thank you for the report. @diegodelrieu @kiruthikraaj v1.1.1 is just released, please use that. That has the fix. |
Great Thanks for the update.
…On Fri, 12 Nov 2021 at 11:08, Mohammadsadegh Najafi < ***@***.***> wrote:
@SmartAppsX <https://github.com/SmartAppsX> thank you for the report.
@diegodelrieu <https://github.com/diegodelrieu> @kiruthikraaj
<https://github.com/kiruthikraaj> v1.1.1 is just released, please use
that. That has the fix.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKR5KBLBJBWZ6I6IIATNPMDULSR3TANCNFSM5BKF4PSA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
I got this error after query the balance with anchorEarn.balance
Cannot read property 'amount' of undefined
at TerraAnchorEarn. (\node_modules@anchor-protocol\anchor-earn\dist\facade\terra-anchor-earn.js:325:71)
at Generator.next ()
at fulfilled (\node_modules@anchor-protocol\anchor-earn\dist\facade\terra-anchor-earn.js:5:58)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
The text was updated successfully, but these errors were encountered: