Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Speeding up a Safe creation leads to error in UI and failure of retry #2362

Closed
tschubotz opened this issue May 31, 2021 · 2 comments · Fixed by #2473
Closed

Speeding up a Safe creation leads to error in UI and failure of retry #2362

tschubotz opened this issue May 31, 2021 · 2 comments · Fixed by #2473
Assignees
Labels
Bug 🐛 Something isn't working effort-high High-effort issues Major Needs to be fixed for immediate next public release.

Comments

@tschubotz
Copy link
Member

tschubotz commented May 31, 2021

Title/Description

Speeding up a Safe creation leads to error in UI and failure of retry

Environment

  • Browser: Firefox

  • Wallet: MM

  • App Version: 3.6.5

  • Environment:

    • production (mainnet)

Steps to reproduce

  1. Create a Safe (1 owner, threshold 1)
  2. When Metamask pops up set a gas price so that it would take several hours to get mined. (tx)
  3. Now speed up the tx in metamask so it would get mined (tx)
  4. -> Now the Safe UI shows error (see screenshot below)
  5. Click retry
  6. Submit tx so it would get mined
  7. Tx fails on chain (tx)

Expected result

  • When a tx was sped up, I expect that the Safe UI doesn't show me a failed Safe creation
  • In case I actually got a failed Safe creation, I would expect that "retry" would create a new valid tx that doesn't fail.

Screenshots

image

How to fix

@tschubotz:

We cannot detect if a tx was sped up. But a proper fix would be checking for the wallet created event on chain since we know the resulting safe address upfront.

@tschubotz tschubotz added Bug 🐛 Something isn't working Major Needs to be fixed for immediate next public release. labels May 31, 2021
@katspaugh katspaugh added the effort-high High-effort issues label Jun 2, 2021
@fernandomg
Copy link
Contributor

we should keep an eye on web3/web3.js#3723

@katspaugh katspaugh added this to the 3.8.0 milestone Jun 2, 2021
@fernandomg fernandomg self-assigned this Jun 4, 2021
@katspaugh katspaugh removed this from the 3.8.0 milestone Jun 16, 2021
@katspaugh
Copy link
Member

The latest code for this issue is on this branch by Fer.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug 🐛 Something isn't working effort-high High-effort issues Major Needs to be fixed for immediate next public release.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants