Skip to content

Commit

Permalink
Change l2 gas price from felt.Zero to nil
Browse files Browse the repository at this point in the history
  • Loading branch information
AnkushinDaniil committed Dec 24, 2024
1 parent 64fee22 commit 4ee2e41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rpc/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ func adaptBlockHeader(header *core.Header) BlockHeader {
InFri: nilToZero(header.L1GasPriceSTRK),
},
L2GasPrice: &ResourcePrice{
InWei: nilToZero(header.L2GasPriceETH),
InFri: nilToZero(header.L2GasPriceSTRK),
InWei: header.L2GasPriceETH,
InFri: header.L2GasPriceSTRK,
},
L1DataGasPrice: &l1DataGasPrice,
L1DAMode: &l1DAMode,
Expand Down
2 changes: 1 addition & 1 deletion rpc/simulation.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func calculateFeeEstimate(overallFee *felt.Felt, l1DataGas uint64, feeUnit FeeUn

return FeeEstimate{
L1GasConsumed: l1GasConsumed,
L2GasConsumed: &felt.Zero, // TODO: Fix when we have l2 gas price
L2GasConsumed: nil, // TODO: Fix when we have l2 gas price
L1GasPrice: l1GasPrice,
L2GasPrice: l2GasPrice,
L1DataGasConsumed: l1DataGasConsumed,
Expand Down

0 comments on commit 4ee2e41

Please sign in to comment.