This repository was archived by the owner on Mar 5, 2025. It is now read-only.
  
  
  
  
  
Description
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.

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
- Create a tranasction with any dApp with MetaMask
- Speed it up
- 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.