How to convert solidity return uint value to int and use it on frontend using Etherjs #4243
Unanswered
dev-soumyadeep
asked this question in
Q&A
Replies: 1 comment 1 reply
-
All results should be a BigInt. You can use the Let me know if that’s what you mean. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
` function fetchLoanDetails() public view returns (uint,uint){
}`
I want to receive this return value and display it on frontend , but nothing is getting displayed . on sole the values are coming as 4072465n and 0. How to convert them into int and display them on frontend.
P.S : Used formatEther & parseEther but getting error.
Beta Was this translation helpful? Give feedback.
All reactions