Skip to content

Commit 235139a

Browse files
committed
tracers: fix variable shadowing in FeeHistory loop
1 parent 447b5f7 commit 235139a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ethclient/ethclient.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,8 +639,8 @@ func (ec *Client) FeeHistory(ctx context.Context, blockCount uint64, lastBlock *
639639
reward := make([][]*big.Int, len(res.Reward))
640640
for i, r := range res.Reward {
641641
reward[i] = make([]*big.Int, len(r))
642-
for j, r := range r {
643-
reward[i][j] = (*big.Int)(r)
642+
for j, v := range r {
643+
reward[i][j] = (*big.Int)(v)
644644
}
645645
}
646646
baseFee := make([]*big.Int, len(res.BaseFee))

0 commit comments

Comments
 (0)