mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Merge pull request #2899 from MetaMask/danfinlay-patch-1
Default to estimating 1 gwei for empty blocks.
This commit is contained in:
commit
f42a808bea
@ -492,7 +492,7 @@ module.exports = class MetamaskController extends EventEmitter {
|
||||
const { recentBlocks } = recentBlocksController.store.getState()
|
||||
const lowestPrices = recentBlocks.map((block) => {
|
||||
if (!block.gasPrices) {
|
||||
return new BN(0)
|
||||
return GWEI_BN
|
||||
}
|
||||
return block.gasPrices
|
||||
.map(hexPrefix => hexPrefix.substr(2))
|
||||
|
Loading…
Reference in New Issue
Block a user