-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Transaction receipt has undefined gas price when gas price is 0 #4014
Comments
I think changing this ethers.js/src.ts/providers/provider.ts Line 626 in fd96d14
|
On Fri, Apr 28, 2023 at 10:39 AM, Franco Victorio ***@***.***>
wrote: A
… I think changing this || for a ?? fixes the issue:
https://github.com/ethers-io/ethers.js/blob/fd96d149abc955252080d8152647545e90cff667/src.ts/providers/provider.ts#L626
—
Reply to this email directly, view it on GitHub
<#4014 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZBSATHP2I2KM56REL4Q52DXDOF65ANCNFSM6AAAAAAXO6JOYQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
This seems like it is definitely a bug. Heading to a coffee shop now and will get looking at it. The env CI is pretty much working now. I just had a few more things to test out and so I can start pumping out releases again, with better build-setup regressions. |
This seems like it is definitely a bug. Heading to a coffee shop now and will get looking at it. The env CI is pretty much working now. I just had a few more things to test out and so I can start pumping out releases again, with better build-setup regressions. |
Fixed in v6.4.0. Let me know if there are any more problems. Thanks! :) |
Ethers Version
6.3.0
Search Terms
receipt gasprice undefined zero 0
Describe the Problem
The gas price in the receipt of a transaction with 0 gas price is
undefined
instead of0n
.To reproduce, start a Hardhat node (
npx hardhat node
in any Hardhat project) and runnode script.mjs
in another terminal.Code Snippet
Contract ABI
No response
Errors
No response
Environment
Hardhat
Environment (Other)
No response
The text was updated successfully, but these errors were encountered: