Open ksew1 opened 2 weeks ago
We are discussing if it's a feature or bug and how to handle that.
Forking the origin is just adding the possibility to query the origin network but it doesn't mean that we should also have the same fee as the origin since it's our local development network.
We are thinking about adding the possibility to configure fees so users can tweak it as they like.
What can be done is to add an endpoint to tweak the VersionedConstants
which are responsible for calculating the gas amount
Hint: check logic from CLI regarding:
gas_price_wei: self.gas_price_wei,
gas_price_strk: self.gas_price_strk,
data_gas_price_wei: self.data_gas_price_wei,
data_gas_price_strk: self.data_gas_price_strk,
and block_context: BlockContext
there are also
pub l1_gas_price: GasPricePerToken,
pub l1_data_gas_price: GasPricePerToken,
in BlockHeader
Describe the bug (observed vs expected behavior)
Observed:
The field
gas_consumed
has low estimations ondevnet
when usingstarknet_estimateFee
andstarknet_simulateTransactions
. As a result, the following error occurs when trying to deploy:Expected:
Calls should have higher gas consumption estimations. This behavior is observed when performing calls on the
alpha-sepolia
testnet.Not reproducible on testnet
To Reproduce
devnet
from thealpha-sepolia
testnet.devnet
using eitherstarknet_estimateFee
orstarknet_simulateTransactions
.alpha-sepolia
testnet.devnet
will be multiple magnitudes smaller compared toalpha-sepolia
.Template for
starknet_estimateFee
for OZ Account Deployment that Reproduces this Issue:Devnet version
System specifications