Skip to content

Commit

Permalink
Ignore lint
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisngyn committed Dec 26, 2024
1 parent a82c38d commit 6585b34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/chains/chains.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package chains

//go:generate enumer -type=ChainID -linecomment -json=true -sql=true -yaml
type ChainID int64
type ChainID int64 // nolint: recvcheck

const (
Ethereum ChainID = 1 // ethereum
Expand Down
6 changes: 3 additions & 3 deletions pkg/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (e *APIError) Error() string {
}

// BigInt is helper use to marshal,unmarhsal bigInt as json string (with double quote).
type BigInt big.Int
type BigInt big.Int // nolint: recvcheck

func (b BigInt) String() string {
return b.Int().String()
Expand Down Expand Up @@ -60,7 +60,7 @@ func BigIntFromStd(b *big.Int) *BigInt {
}

// ZxBytes is alias of ethereum Bytes, encode/decode with 0x prefix.
type ZxBytes = hexutil.Bytes
type ZxBytes = hexutil.Bytes // nolint: recvcheck

// Bytes is a helper to unmarshal hex encode string (without 0x prefix, ethereum common type require 0x).
type Bytes []byte
Expand Down Expand Up @@ -99,7 +99,7 @@ func BytesFromRaw(b []byte) Bytes {
}

// Duration is a helper type to unmarshal json duration string.
type Duration time.Duration
type Duration time.Duration // nolint: recvcheck

func (d Duration) MarshalJSON() ([]byte, error) {
return []byte(strconv.Quote(time.Duration(d).String())), nil
Expand Down

0 comments on commit 6585b34

Please sign in to comment.