Skip to content

Commit

Permalink
lint ...
Browse files Browse the repository at this point in the history
  • Loading branch information
CryptoMaxPlanck committed Aug 25, 2022
1 parent 96b7890 commit 8216f7a
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions scribe/db/datastore/sql/base/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package base
import (
"context"
"fmt"
"math/big"

"github.com/ethereum/go-ethereum/core/types"
)
Expand All @@ -28,19 +27,3 @@ func (s Store) StoreEthTx(ctx context.Context, tx *types.Transaction) error {

return nil
}

// getChainID gets the chain id from non-legacy transaction types
// it is used to check chainids against the chainid passed in the raw id.
func getChainID(tx *types.Transaction) (hasType bool, chainID *big.Int) {
switch tx.Type() {
case types.LegacyTxType:
return false, nil
default:
chainID = tx.ChainId()
if chainID == nil || chainID.Cmp(big.NewInt(0)) == 0 {
return false, nil
}

return true, tx.ChainId()
}
}

0 comments on commit 8216f7a

Please sign in to comment.