Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

dApp cannot know about txs if MetaMask "speed up" button used #3585

@miohtama

Description

@miohtama

I am filing this issue as the discussion opener, it needs a wider community brainstorming to be solved.

Wallets, like MetaMask offer a "speed up transaction" feature where the past transaction is rewritten with new one to get rid of stuck transactions of too low gas price.

image

Expected behavior

dApp will find out about the transaction after "Speed up" has been used.

Actual behavior

Any sped up transactions are opaque to dApp.

Steps to reproduce the behavior

  1. Create a tranasction with any dApp with MetaMask
  2. Speed it up
  3. Now the new transaction has a new hash that dApp is not aware off

My suggestion with have a PromiEvent.on("replace") that emits (oldHash, newHash, newTxData) event for "replacement transaction". It will make the dApp logic tricky because often transactions are referred by their hashes and now dApps would need to track all transactions with their internally generated ids.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions