Skip to content

Commit

Permalink
Remove duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
palango committed Sep 18, 2023
1 parent 1d0f1be commit 16c25e7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -1492,12 +1492,6 @@ func newRPCTransaction(tx *types.Transaction, blockHash common.Hash, blockNumber
result.TransactionIndex = (*hexutil.Uint64)(&index)
}

// Celo specifics
// TODO: copied over, but this is done in line 1479 already
if tx.Type() == types.LegacyTxType || tx.Type() == types.CeloDynamicFeeTxType {
result.FeeCurrency = tx.FeeCurrency()
}

switch tx.Type() {
case types.DepositTxType:
srcHash := tx.SourceHash()
Expand Down

0 comments on commit 16c25e7

Please sign in to comment.