I am learning web3, and a person is using solidity ^0.4.5, and I am adapting his code to solidity ^0.8.9, and I am facing this problem when if I have 1000 here:
factory = await new web3.eth.Contract(compiledFactory.abi)
.deploy({data: compiledFactory.evm.bytecode.object})
.send({from: accounts[0], gas: 10000});
the error is Error: base fee exceeds gas limit
if I add extra 0 there:
factory = await new web3.eth.Contract(compiledFactory.abi)
.deploy({data: compiledFactory.evm.bytecode.object})
.send({from: accounts[0], gas: 100000});
the error is n: Exceeds block gas limit
This is my full code:
https://pastebin.com/iQaw0SRx
This is my Contract:
https://pastebin.com/3GD6CsVq

.send({from: accounts[0], gas: 100000});i left gas at 100000, still gives me this error:base fee exceeds gas limit– Efim Rubin Jul 17 '22 at 09:52https://ethereum.stackexchange.com/questions/46957/solidity-exceeds-block-gas-limit-during-mocha-tests-with-ganache-cli ^ Thread with similar problem. Can you upload the new updated code you are attempting to run as well?
– Brianleect Jul 19 '22 at 09:31