0

I can't deals with big number (BN.js) with web3.js I have overflow error or i have execution reverted with BN.js library when I try add liquidity to pancakeswap pool.

By using BN.js

enter image description here

Without using BN.js

enter image description here

1
  • Can you share the web3 code involved? In some cases you have to initialize the number with a string "100000000".
    – Ismael
    Commented Mar 19, 2023 at 2:14

1 Answer 1

0

Welcome, It seems this is a common issue:

https://stackoverflow.com/questions/62301960/unable-to-call-contract-function-from-web3-with-big-number-as-parameter

Please include your actual code for further troubleshooting, so that the error can be reproduced.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.