1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-01 21:57:06 +01:00
metamask-extension/ui/components/app/transaction-detail-item
Mark Stacey ec7e7fdf6d
Fix fallback gas estimation (#19746)
* Fix fallback gas estimation

Our fallback gas estimation was failing due to a bug in the
`@metamask/controller-utils` package. This was causing gas estimation
to fail completely on certain networks (those not supported by our gas
estimation APIs and non EIP-1559 compatibile), and it was causing the
fallback gas estimation operation (in case our API was down) to fail
across all networks.

Fixes https://github.com/MetaMask/metamask-extension/issues/19735

* Add e2e tests

E2E tests have been added to capture gas estimation. Cases are added
for our API, for the fallback estimate, and for non-EIP-1559 estimates.

As part of this work, the legacy gas API had to be disabled. This was
being used in e2e tests but was dead code in production. It needed to
be disabled to ensure the code under test was reachable.

* Fix gas API referenced in e2e test

* Update unit test snapshots
2023-06-26 16:13:16 -02:30
..
index.js Provide New UI Components for EIP-1559 Designs (#11357) 2021-06-23 18:39:44 -05:00
index.scss upgrade gulp-autoprefixer (#16439) 2022-11-15 08:40:56 -06:00
README.mdx Added storybook check to CI (#17092) 2023-01-21 00:57:46 +05:30
transaction-detail-item.component.js Fix fallback gas estimation (#19746) 2023-06-26 16:13:16 -02:30
transaction-detail-item.stories.js Replaced all fa-icon-circle with INFO icon (#17539) 2023-05-09 23:04:58 +05:30

import { Story, Canvas, ArgsTable } from '@storybook/addon-docs';

import TransactionDetailItem from '.';

# Transaction Detail Item

Transaction detail that includes estimated gas fees. Intended to be used as an array item in the array passed to the `rows` prop of `<TransactionDetail />`

<Canvas>
  <Story id="components-app-transactiondetailitem--default-story" />
</Canvas>

## Props

<ArgsTable of={TransactionDetailItem} />