You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// SPDX-License-Identifier: MITpragmasolidity^0.8.28;contractContract{uint64privateprice;// Making it immutable worksconstructor(){price=uint64(tx.gasprice);}}
Version of Hardhat
2.22.15
What happened?
Cannot deploy a specific contract to a blockchain (tried fantom, sonic testnet and arbitrum). It stores the tx.gasPrice in the constructor.
Transaction failing to deploy it with default args:
https://arbiscan.io/tx/0x4aba3be69ebbff1c9696fd7f71f62334249ad72a21e150973917bd425cdabf98
Transaction successful specifying a higher gas price:
https://arbiscan.io/tx/0x3b97e44c329f71a7ba502162578e7761d20b2cb1ab64475f41d066a9f7a2e1d1
Minimal reproduction steps
Create this contract:
Try to deploy it on a network other than hardhat:
A repo which can replicate this has been set up:
https://github.com/0xSamWitch/VRFRequestInfoDeploymentFailure
Search terms
out of gas, tx.gasPrice
The text was updated successfully, but these errors were encountered: