Closed Daniel-K-Ivanov closed 2 years ago
When defining value as part of a contract call, the amount is denominated in hbars however it should be in tinybars Example code:
value
hbars
tinybars
const depositTx = await WHBAR.deposit({value: hbarAmount, gasLimit: 150_000});
In this case hbarAmount is in hbars and not tinybars
hbarAmount
When defining
value
as part of a contract call, the amount is denominated inhbars
however it should be intinybars
Example code:In this case
hbarAmount
is inhbars
and nottinybars