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 24, 2019 in Blockchain by Mary
2,582 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 24, 2019 by Omkar
• 69,210 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,740 points
2,593 views
0 votes
4 answers

Unable to run truffle@2.1.2 migrate --network live. “Exceeds block gas limit”

A simple solution to avoid this is: module.exports ...READ MORE

answered Sep 28, 2018 in Blockchain by Ludo
1,328 views
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,100 points
596 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,790 points
1,682 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,226 views
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
• 69,210 points
3,382 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
• 69,210 points
5,532 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
• 69,210 points
1,244 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP