Skip to content

Commit

Permalink
remove dead code.
Browse files Browse the repository at this point in the history
  • Loading branch information
raulk committed Jan 12, 2023
1 parent 956f6e9 commit b4b1241
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions chain/types/ethtypes/eth_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -422,30 +422,6 @@ type EthFeeHistory struct {
Reward *[][]EthBigInt `json:"reward,omitempty"`
}

type BlkNumType int64

const (
BlkNumLatest BlkNumType = iota
BlkNumPending
BlkNumVal
)

func ParseBlkNumOption(str string) (typ BlkNumType, blkNum EthUint64, err error) {
switch str {
case "pending":
return BlkNumPending, 0, nil
case "latest":
return BlkNumLatest, 0, nil
default:
var num EthUint64
err := num.UnmarshalJSON([]byte(`"` + str + `"`))
if err != nil {
return BlkNumVal, 0, err
}
return BlkNumVal, num, nil
}
}

type EthFilterID EthHash

// An opaque identifier generated by the Lotus node to refer to an active subscription.
Expand Down

0 comments on commit b4b1241

Please sign in to comment.