BigNumber stack us. Probably our way to use BigNumber is wrong. #2486
-
I often use useDapp hooks which use ether.js. I successfully call read-only function from ETH blockchain like allowance function of USDC. However, I was thrown this error when I call read-only function which return more than 2 values on typescript.
The following code is something wrong. But, I do not know how to fix the bug. Please help us.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You are passing |
Beta Was this translation helpful? Give feedback.
You are passing
undefined
intoBigNumber
, try loggingreserve0
. I’m guessing there is something amiss inuseGetReserves
.