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

Hbar amount passed as value is HBARs not tinybars #26

Closed
Daniel-K-Ivanov opened this issue Aug 28, 2022 · 0 comments · Fixed by hashgraph/hethers.js#276
Closed

Hbar amount passed as value is HBARs not tinybars #26

Daniel-K-Ivanov opened this issue Aug 28, 2022 · 0 comments · Fixed by hashgraph/hethers.js#276
Assignees
Labels
bug Something isn't working

Comments

@Daniel-K-Ivanov
Copy link
Collaborator

When defining value as part of a contract call, the amount is denominated in hbars however it should be in tinybars
Example code:

 const depositTx = await WHBAR.deposit({value: hbarAmount, gasLimit: 150_000});

In this case hbarAmount is in hbars and not tinybars

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants