Skip to content

Commit 0d10a01

Browse files
committed
ethclient: fixup comment
1 parent fc341f4 commit 0d10a01

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ethclient/ethclient.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,7 @@ func (ec *Client) getBlock(ctx context.Context, method string, args ...interface
158158
if err := json.Unmarshal(raw, &body); err != nil {
159159
return nil, err
160160
}
161-
// Pending blocks do not return a block hash, set it to empty hash explicitly
162-
// for sender caching.
161+
// Pending blocks don't return a block hash, compute it for sender caching.
163162
if body.Hash == nil {
164163
tmp := head.Hash()
165164
body.Hash = &tmp

0 commit comments

Comments
 (0)