Skip to content

Commit 8ca3572

Browse files
authored
ethclient: fix variable shadowing in FeeHistory(), close XFN-129 (#1720)
1 parent 5a24951 commit 8ca3572

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)