I'm using chai to test my smart contracts and all the numbers returned from contracts are BigNumber. Now there are a lot of usecases where I need to use closeTo & within but both of there uses number and does not support BigNumber.
I tried a lot of ways but none of them worked. So is there a solution for this? TIA
Hi team,
I'm using chai to test my smart contracts and all the numbers returned from contracts are BigNumber. Now there are a lot of usecases where I need to use
closeTo
&within
but both of there uses number and does not support BigNumber. I tried a lot of ways but none of them worked. So is there a solution for this? TIA