mirror of
https://github.com/status-im/status-go.git
synced 2025-01-21 20:20:29 +00:00
fix: query only header for fees
This commit is contained in:
parent
e65760ca85
commit
1017d2bc16
@ -107,13 +107,13 @@ func (f *FeeManager) suggestedFees(ctx context.Context, chainID uint64) (*Sugges
|
||||
}, nil
|
||||
}
|
||||
|
||||
block, err := backend.BlockByNumber(ctx, nil)
|
||||
header, err := backend.HeaderByNumber(ctx, nil)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
config := params.MainnetChainConfig
|
||||
baseFee := misc.CalcBaseFee(config, block.Header())
|
||||
baseFee := misc.CalcBaseFee(config, header)
|
||||
|
||||
fees, err := f.getFeeHistorySorted(chainID)
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user