Solidity Error: Exceeds block gas limit

0 votes

I have written a smart contract and tried to deploy it on testrpc. I am getting the following error:

Error: Exceeds block gas limit at Object.InvalidResponse 

I have set gas high

gas: 0xfffffffffff, // <-- Use this high gas value
gasPrice: 0x01  

But I am still getting this error. How to solve this?

 .solcover.js

module.exports = {

    port: 8545,

    norpc: true,

    skipFiles: ['contracts/Migrations.sol']

}
Jan 23, 2019 in Blockchain by Mary
222 views

1 answer to this question.

0 votes

Remove the line norpc:true and change the port to 8555. See if it works. Because you are using it on testrpc, your should not set that to true.

answered Jan 23, 2019 by Omkar
• 68,840 points

Related Questions In Blockchain

0 votes
1 answer

Intrinsic gas too low and exceeds block limit

If you are talking about the public ...READ MORE

answered Aug 29, 2018 in Blockchain by digger
• 26,660 points
290 views
0 votes
4 answers
0 votes
1 answer

What if Gas required in my program exceeds the limit of 3000000?

Going through your code, I noticed that  you ...READ MORE

answered May 29, 2018 in Blockchain by Perry
• 17,090 points
96 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,810 points
202 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Truffle compile compilation failed

This is a version compatibility problem. In ...READ MORE

answered Jan 17, 2019 in Blockchain by Omkar
• 68,840 points
601 views
0 votes
1 answer

"Migrations" exceeded the block limit (with a gas value you set).

In the error you have posted, in ...READ MORE

answered Jan 17, 2019 in Blockchain by Omkar
• 68,840 points
983 views
0 votes
1 answer

Solidity geth: Error encountered during contract execution [Bad instruction]

recipes is a dynamic storage array. You need ...READ MORE

answered Oct 15, 2018 in Blockchain by Omkar
• 68,840 points
129 views