Skip to content

Commit

Permalink
Fixed lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
amit-momin committed Jul 29, 2024
1 parent f0ce40f commit 5f0f849
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/chains/evm/config/chaintype/chaintype.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const (
ChainArbitrum ChainType = "arbitrum"
ChainCelo ChainType = "celo"
ChainGnosis ChainType = "gnosis"
ChainHedera ChainType = "hedera"
ChainHedera ChainType = "hedera"
ChainKroma ChainType = "kroma"
ChainMetis ChainType = "metis"
ChainOptimismBedrock ChainType = "optimismBedrock"
Expand Down
6 changes: 3 additions & 3 deletions core/chains/evm/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ type Receipt struct {
BlockHash common.Hash `json:"blockHash,omitempty"`
BlockNumber *big.Int `json:"blockNumber,omitempty"`
TransactionIndex uint `json:"transactionIndex"`
RevertReason []byte `json:"revertReason,omitempty"` // Only returned by Hedera
RevertReason []byte `json:"revertReason,omitempty"` // Only provided by Hedera
}

// FromGethReceipt converts a gethTypes.Receipt to a Receipt
Expand Down Expand Up @@ -121,7 +121,7 @@ func (r Receipt) MarshalJSON() ([]byte, error) {
BlockHash common.Hash `json:"blockHash,omitempty"`
BlockNumber *hexutil.Big `json:"blockNumber,omitempty"`
TransactionIndex hexutil.Uint `json:"transactionIndex"`
RevertReason hexutil.Bytes `json:"revertReason,omitempty"` // Only returned by Hedera
RevertReason hexutil.Bytes `json:"revertReason,omitempty"` // Only provided by Hedera
}
var enc Receipt
enc.PostState = r.PostState
Expand Down Expand Up @@ -153,7 +153,7 @@ func (r *Receipt) UnmarshalJSON(input []byte) error {
BlockHash *common.Hash `json:"blockHash,omitempty"`
BlockNumber *hexutil.Big `json:"blockNumber,omitempty"`
TransactionIndex *hexutil.Uint `json:"transactionIndex"`
RevertReason *hexutil.Bytes `json:"revertReason,omitempty"` // Only returned by Hedera
RevertReason *hexutil.Bytes `json:"revertReason,omitempty"` // Only provided by Hedera
}
var dec Receipt
if err := json.Unmarshal(input, &dec); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion core/services/ocr/contract_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ func (t *OCRContractTracker) LatestBlockHeight(ctx context.Context) (blockheight
// care about the block height; we have no way of getting the L1 block
// height anyway
return 0, nil
case "", chaintype.ChainArbitrum, chaintype.ChainCelo, chaintype.ChainGnosis, chaintype.ChainKroma, chaintype.ChainOptimismBedrock, chaintype.ChainScroll, chaintype.ChainWeMix, chaintype.ChainXLayer, chaintype.ChainZkEvm, chaintype.ChainZkSync:
case "", chaintype.ChainArbitrum, chaintype.ChainCelo, chaintype.ChainGnosis, chaintype.ChainHedera, chaintype.ChainKroma, chaintype.ChainOptimismBedrock, chaintype.ChainScroll, chaintype.ChainWeMix, chaintype.ChainXLayer, chaintype.ChainZkEvm, chaintype.ChainZkSync:
// continue
}
latestBlockHeight := t.getLatestBlockHeight()
Expand Down

0 comments on commit 5f0f849

Please sign in to comment.