i copied the BUSD contract and trying to call the increaseSupply function in it (a similar function to _mint), I wanted to mint 100 BUSD but since the decimal is 18, I am calling busd.increaseSupply(100 * 1e18). However, I am getting the error:
-> overflow (fault="overflow", operation="BigNumber.from", value=100000000000000000000, code=NUMERIC_FAULT, version=bignumber/5.0.8)
Should i not multiply by 1e18?

Apr 29, 2021, 5:10 AM

© 2024 Draquery.com All rights reserved.