I'm trying to fork uniswap v2.. when deploying UniswapRouter.. I'm getting run out of gas error in ganache how to fix it.. any help...
It's getting deployed in remix without any issue with enable optimization 200 but not with ganache even after enabling optimization in config file..
Any help..
May 31, 2022, 2:58 AM
Its deployed without issue even with hardhat π±π±.. so problem with truffleπ€π€
May 31, 2022, 3:45 AM
Set the gas limit
May 31, 2022, 3:57 AM
I tried to set the gas limit 100 times more also block gas limit.. but nothing worked bro..
I searched online for 2 hrs but none of the solution worked..
I searched online for 2 hrs but none of the solution worked..
In hardhat working fine now.. so i tried with truffle one more time and it also worked π±π±
May 31, 2022, 4:03 AM
If you want to send txs, you should use a signer that is connected to a provider
May 31, 2022, 4:04 AM
I tried to migrate with truffle for 15+ times every time it got failed.. but after hardhat migration successful.. again i tried with truffle it works π±π±
May 31, 2022, 4:05 AM
You can set a gas limit in the truffle config file and also when sending txs. Set both and also make sure that they are less than the block gas limit
May 31, 2022, 4:05 AM
Christoph ππ
without changing any gas limit migration got successful with truffle now bro with hardhat node instead of ganache..
without changing any gas limit migration got successful with truffle now bro with hardhat node instead of ganache..
May 31, 2022, 4:08 AM
Ganache allows you to set the block gas limit and also to disregard the 24 KiB contact size limit
It's probably one of these
sorry to repeat a question but is the create2 assembly function guaranteed to return the zero address if deployment fails?
May 31, 2022, 5:36 AM