Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
onikonychev committed May 22, 2024
1 parent 79516f5 commit 91d9e4c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions eth/chain_id.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ import (
// IsValidChainID returns false if the given chain identifier is incorrectly
// formatted.
func IsValidChainID(chainID string) bool {
if len(chainID) > 48 {
return false
}

return true
return len(chainID) <= 48
}

// ParseEthChainID parses a string chain identifier's epoch to an
Expand Down

0 comments on commit 91d9e4c

Please sign in to comment.