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
1,899 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,190 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,720 points
1,647 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,100 points
398 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,041 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
• 69,190 points
2,373 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,190 points
4,399 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,190 points
839 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP