mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
ethclient: fix variable shadowing in FeeHistory(), close XFN-129 (#1720)
This commit is contained in:
parent
5a2495100d
commit
8ca35720cd
1 changed files with 2 additions and 2 deletions
|
|
@ -639,8 +639,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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue