Skip to content

Commit

Permalink
fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton-Rampage committed Jul 30, 2024
1 parent 572a9a4 commit 74ea7bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/l2/http_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (c *HttpAPIClient) GetBlockByHash(ctx context.Context, hash proto.EthereumH
response := EcBlock{}
err := c.rpcClient.CallFor(ctx, &response, "eth_getBlockByHash", hash, false)
if err != nil {
return nil, fmt.Errorf("failed getting latest block by hash %s: %v", hash.String(), err)
return nil, fmt.Errorf("failed getting block by hash %s: %v", hash.String(), err)

Check failure on line 51 in pkg/l2/http_api.go

View workflow job for this annotation

GitHub Actions / ubuntu

non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)

Check failure on line 51 in pkg/l2/http_api.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
}
return &response, nil
}

0 comments on commit 74ea7bc

Please sign in to comment.