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

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

Closed
its-everdred wants to merge 4 commits intodevelopfrom
fix-arbitrum-gas-paid-4559
Closed

Use effectiveGasPrice and fall back to gasPrice when missing.#4600
its-everdred wants to merge 4 commits intodevelopfrom
fix-arbitrum-gas-paid-4559

Conversation

@its-everdred
Copy link
Copy Markdown
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.

@its-everdred its-everdred self-assigned this Jun 2, 2022
@its-everdred its-everdred force-pushed the fix-arbitrum-gas-paid-4559 branch from ca79178 to c951c1c Compare July 6, 2022 22:51
@fainashalts
Copy link
Copy Markdown
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