React Native: insufficient funds for gas * price + value in BSC testnet chain. ONLY Release, Debug work great. I have 0.3 BNB enough for transaction #6218
j just fixed this bug! I'm really sorry, this bug because i using ethers.utils.parseUnits to caculate amount out with slip :v lol, it took me 2 weeks LOLL hahaha thankssssss
Please help me! This is my code:
` let sendAmount = new BigNumber(amountIn).multipliedBy(Math.pow(10, 18)); // Set up the signer using the private key tronLog({amountIn, slip}); const sendAmountWithSlip = ethers.utils.parseUnits( (amountIn * (1 - slip / 100)).toString(), 18, ); const gasPrice = await BscService.getGasPrice();