I am trying to run some basic test w/ my contract, written with Truffle's Solidity tests (tests written in Solidity).
truffle test, I get
Error: VM Exception while processing transaction: out of gas
Note: This is caused by the contract constructor
new ..., which is indeed doing a lot of things. And I can't break anything down in my code.
Is there any way to get this working with a test written in Solidity? Is there a way to configure the amount of gas the test contract has available?
Actually I figured out changing the
gas config value in
truffle.js does have an effect. Yet, I am hitting now another roadblock
Error: Error: Exceeds block gas limit
I guess that I have no other choice than optimising the deployment (thus, the constructor) of my contract so as to make it lighter?