La función addLiquidity () se revierte sin ningún motivo en la instancia de desarrollo local de ganache, ¿alguna idea de por qué podría estar sucediendo esto?
Algunos antecedentes:
Así es como llamo a la función addLiquidity
const blockNumber = await web3.eth.getBlockNumber(); const block = await web3.eth.getBlock(blockNumber); const timestamp = block.timestamp + 300; await router.addLiquidity( ERC20_TOKEN_1_ADDRESS, ERC20_TOKEN_2_ADDRESS, web3.utils.toWei('1', 'ether'), web3.utils.toWei('1', 'ether'), web3.utils.toWei('0.001', 'ether'), web3.utils.toWei('0.001', 'ether'), OWNER_ADDRESS, timestamp, { gas: 4000000 } )