Skip to content

Commit

Permalink
Remove L2GasPriceETH and L2GasPriceSTRK methods
Browse files Browse the repository at this point in the history
  • Loading branch information
AnkushinDaniil committed Jan 22, 2025
1 parent 454c9b7 commit 9ab791d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 46 deletions.
16 changes: 0 additions & 16 deletions starknet/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,22 +53,6 @@ func (b *Block) L1GasPriceSTRK() *felt.Felt {
return b.GasPriceFRI
}

// TODO: Fix when we have l2 gas price
func (b *Block) L2GasPriceETH() *felt.Felt {
if b.L2GasPrice != nil {
return b.L2GasPrice.PriceInWei
}
return &felt.Zero
}

// TODO: Fix when we have l2 gas price
func (b *Block) L2GasPriceSTRK() *felt.Felt {
if b.L2GasPrice != nil {
return b.L2GasPrice.PriceInFri
}
return &felt.Zero
}

type L1DAMode uint

const (
Expand Down
30 changes: 0 additions & 30 deletions starknet/block_test.go

This file was deleted.

0 comments on commit 9ab791d

Please sign in to comment.