Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Failing Transactions don't display a Warning anymore and set an insane amount of Gas fees #17379

Closed
seaona opened this issue Jan 24, 2023 · 5 comments · Fixed by #17437 or #17458
Assignees
Labels
PS-team PS MM extension team issues release-blocker This bug is blocking the next release team-confirmations-secure-ux DEPRECATED: please use "team-confirmations" label instead type-bug

Comments

@seaona
Copy link
Contributor

seaona commented Jan 24, 2023

Describe the bug

Problem: when a tx is going to fail, it displays an insane amount of Gas fees and no warning:

image

We used to display a warning, like this:

image

Steps to reproduce

  1. Select Mainnet
  2. Go to https://etherscan.io/token/0xdac17f958d2ee523a2206206994597c13d831ec7#writeContract
  3. Connect MM
  4. Click Deprecate
  5. Add an address
  6. Check MM

Error messages or log output

No response

Version

10.24.0

Build type

None

Browser

Chrome

Operating system

Linux

Hardware wallet

No response

Additional context

No response

@seaona seaona changed the title [Bug]: Failing Transactions don't display a Warning anymore and set an insane of Gas fees [Bug]: Failing Transactions don't display a Warning anymore and set an insane amount of Gas fees Jan 24, 2023
@seaona seaona added the team-confirmations-secure-ux DEPRECATED: please use "team-confirmations" label instead label Jan 24, 2023
@bschorchit
Copy link

Oh, I see a warning in your first screenshot and also got one when going through the repro steps (screenshot). I think there are some other screens where no warning is being shown.

Screenshot 2023-01-24 at 12 51 51

@bschorchit
Copy link

Repro steps for no warning being shown + insane gas fee (in MM v10.23.1):

  1. Go to https://etherscan.io/address/0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d#writeContract
  2. Connect your wallet
  3. Go to approve and input a random address and a random token id (I used 1, it's important that you don't actually own that NFT)
  4. Click on Write
  5. Notice the insane gas fee but no warning

@bschorchit
Copy link

bschorchit commented Jan 25, 2023

Finding from Dan M.:

So we still have this warning, and it is still working, but NOT if the new EIP-1559 gas UI setting is set to true

Screenshot from 2023-01-25 08-36-45

@danjm
Copy link
Contributor

danjm commented Jan 25, 2023

I am 95% sure that the root cause of this is the same as the root cause of #17377

@danjm
Copy link
Contributor

danjm commented Jan 25, 2023

@VSaric I am assigning you to this as well, because I think that it will be resolved by the same fix that resolves #17377

cc @ElvirCe

Also, I am pretty sure that the problematic section of code is in confirm-transaction-base.component.js:

rows={[
  renderSimulationFailureWarning &&
    !this.supportsEIP1559V2 &&
    simulationFailureWarning(),
  !renderSimulationFailureWarning &&
    !isMultiLayerFeeNetwork &&
    renderGasDetailsItem(),
  !renderSimulationFailureWarning && isMultiLayerFeeNetwork && (
    <MultiLayerFeeMessage
      transaction={txData}
      layer2fee={hexMinimumTransactionFee}
      nativeCurrency={nativeCurrency}
    />
  ),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PS-team PS MM extension team issues release-blocker This bug is blocking the next release team-confirmations-secure-ux DEPRECATED: please use "team-confirmations" label instead type-bug
Projects
None yet
5 participants