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

Use effectiveGasPrice and fall back to gasPrice when missing. #4600

Closed
wants to merge 4 commits into from

Conversation

kevinweaver
Copy link
Contributor

Problem

In, #4559 we noticed that truffle was displaying incorrect transaction fees when using Arbitrum. This has to do with complexity that exists for their L2 that makes transaction.gasPrice unreliable compared to receipt.effectiveGasPrice. However, this isn't a problem that we need Arbitrum-specific code to support because gasPrice has been officially deprecated in favor of effectiveGasPrice post-EIP-1559 anyway.

Solution

When reporting transactions fees, set the gas price to receipt.effectiveGasFee if it exists, otherwise transaction.gasPrice

To do

Check that this works on different versions of ganache, EIP-1559 & legacy transactions, Arbitrum & Ethereum.

@kevinweaver kevinweaver self-assigned this Jun 2, 2022
@fainashalts
Copy link
Contributor

Hi @kevinweaver! Asking you as an open source contributor at large :) Do you know what happened to this PR? Should it be closed, or did this get resolved with the new version of Arbitrum?

@eggplantzzz eggplantzzz self-assigned this Jan 31, 2023
@eggplantzzz eggplantzzz closed this Mar 7, 2023
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.

3 participants