I am stuck between "out of gas" and "exceed block gas limit" when try deploying my contract onto Test RPC in my mocha test file.
I wonder
- Can I manually increase block gas limit on my test RPC (I am not using truffle)? how?
- Is this gonna be a problem when I deploy to main net?
Below is my test.js
const assert = require('assert');
const ganache = require('ganache-cli');
const Web3 = require('web3');
const web3 = new Web3(ganache.provider({"total_accounts":20, "debug":true}));
const compiledFactory = require('../build/SyndicateFactory.json');
let accounts;
let factory;
let syndciateAddress;
let syndicate;
let DeployICO1;
let ICO1;
let exchangeAddress;
beforeEach(async()=> {
accounts = await web3.eth.getAccounts();
syndicateFeeTimes1000 = 10;
exchangeAddress = accounts[5];
factory = await new web3.eth.Contract(JSON.parse(compiledFactory.interface)).deploy({data: compiledFactory.bytecode}).send({from:accounts[0], gas:'7000000'});
});