Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeniy-scherbina committed Apr 9, 2024
1 parent 7d9063c commit d80f807
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rpc/backend/blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ func (b *Backend) TendermintBlockResultByNumber(height *int64) (*tmrpctypes.Resu
if !ok {
b.logger.Error("invalid rpc client")
return nil, errors.New("invalid rpc client")

}

return sc.BlockResults(b.ctx, height)
}

Expand Down
2 changes: 1 addition & 1 deletion rpc/types/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func BaseFeeFromEvents(events []abci.Event) *big.Int {

for _, attr := range event.Attributes {
if attr.Key == feemarkettypes.AttributeKeyBaseFee {
result, success := new(big.Int).SetString(string(attr.Value), 10)
result, success := new(big.Int).SetString(attr.Value, 10)
if success {
return result
}
Expand Down
2 changes: 1 addition & 1 deletion rpc/websockets.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (s *websocketsServer) Start() {

func (s *websocketsServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
upgrader := websocket.Upgrader{
CheckOrigin: func(r *http.Request) bool {
CheckOrigin: func(_ *http.Request) bool {
return true
},
}
Expand Down

0 comments on commit d80f807

Please sign in to comment.