ethclient: fix variable shadowing in FeeHistory(), close XFN-129 (#1720)

This commit is contained in:
Daniel Liu 2025-11-04 13:48:28 +08:00 committed by benjamin202410
parent b4e874d347
commit 5376c0a75b

View file

@ -489,8 +489,8 @@ func (ec *Client) FeeHistory(ctx context.Context, blockCount uint64, lastBlock *
reward := make([][]*big.Int, len(res.Reward))
for i, r := range res.Reward {
reward[i] = make([]*big.Int, len(r))
for j, r := range r {
reward[i][j] = (*big.Int)(r)
for j, v := range r {
reward[i][j] = (*big.Int)(v)
}
}
baseFee := make([]*big.Int, len(res.BaseFee))