Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

fix estimateGas bug when basefee > defaultTransactionGasLimit #24

Closed
wants to merge 5 commits into from

Conversation

ewingrj
Copy link
Contributor

@ewingrj ewingrj commented Oct 29, 2017

The gasLimit for an estimateGas call was set to the
defaultTransactionGasLimit of 90000 gas. This would cause
ethereumjs-vm runCall to throw the error 'base fee exceeds
gas limit'.

By setting the gasLimit to the block gas limit, this allows use to
correctly estimate gas for tx's where the basefee > gasLimit, such as
when deploying a contract.

benjamincburns and others added 5 commits October 18, 2017 15:08
The gasLimit for an estimateGas call was set to the
defaultTransactionGasLimit of 90000 gas. This would cause
ethereumjs-vm runCall to throw the error 'base fee exceeds
gas limit'.

By setting the gasLimit to the block gas limit, this allows use to
correctly estimate gas for tx's where the basefee > gasLimit, such as
when deploying a contract.
@ewingrj ewingrj changed the base branch from master to develop October 29, 2017 04:07
@ewingrj ewingrj closed this Oct 29, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants