Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vm: better error message to avoid confusion with EIP1559 base fee #3118

Merged
merged 2 commits into from
Oct 25, 2023

Conversation

jochem-brouwer
Copy link
Member

If the gas limit of a tx is lower than the minimum gas limit (this consists of: tx upfront gas of 21000, the tx data cost, and optionally more gas needed for contract creation), previously we had this error message: base fee exceeds gas limit. This is confusing with EIP1559s base fee and is completely unrelated. This PR updates the error message.

@codecov
Copy link

codecov bot commented Oct 25, 2023

Codecov Report

Merging #3118 (d0c48a2) into master (25696ac) will increase coverage by 4.28%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

Flag Coverage Δ
block 88.78% <ø> (ø)
blockchain 92.27% <ø> (ø)
client 87.55% <ø> (?)
common 98.19% <ø> (ø)
evm ?
rlp ?
statemanager 90.30% <ø> (ø)
trie 90.32% <ø> (ø)
tx 96.36% <ø> (ø)
util 88.26% <ø> (ø)
vm ?

Flags with carried forward coverage won't be shown. Click here to find out more.

@holgerd77
Copy link
Member

Updated this via UI

Copy link
Member

@holgerd77 holgerd77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for adressing so quickly

@holgerd77 holgerd77 merged commit 77292fe into master Oct 25, 2023
43 checks passed
@holgerd77 holgerd77 deleted the better-vm-error-msg branch October 25, 2023 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants