mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Allow higher precision gas prices in the send flow (#11652)
* Allow higher precision gas prices in the send flow * Fix gas duck test * Allow more decimals in transaction breakdown gas price
This commit is contained in:
parent
3010c1b565
commit
404f876026
@ -95,6 +95,7 @@ export default class TransactionBreakdown extends PureComponent {
|
||||
currency={nativeCurrency}
|
||||
denomination={GWEI}
|
||||
value={gasPrice}
|
||||
numberOfDecimals={9}
|
||||
hideLabel
|
||||
/>
|
||||
)}
|
||||
|
@ -198,7 +198,7 @@ describe('Gas Duck', () => {
|
||||
{
|
||||
type: SET_BASIC_GAS_ESTIMATE_DATA,
|
||||
value: {
|
||||
average: 0.0482,
|
||||
average: 0.048199313,
|
||||
},
|
||||
},
|
||||
]);
|
||||
|
@ -173,7 +173,7 @@ async function fetchEthGasPriceEstimates(state) {
|
||||
const gasPrice = await global.eth.gasPrice();
|
||||
const averageGasPriceInDecGWEI = getValueFromWeiHex({
|
||||
value: gasPrice.toString(16),
|
||||
numberOfDecimals: 4,
|
||||
numberOfDecimals: 9,
|
||||
toDenomination: 'GWEI',
|
||||
});
|
||||
const basicEstimates = {
|
||||
|
Loading…
Reference in New Issue
Block a user