status-im / status-desktop

Status Desktop client made in Nim & QML
https://status.app
Mozilla Public License 2.0
299 stars 79 forks source link

Bridge eth mainnet -> optimism stucks #15863

Closed friofry closed 3 months ago

friofry commented 3 months ago

Bug Report

Description

I've got some ETH to test and tried to bridge it to Optimism. After confirmation I see an endless spinner

Steps to reproduce

On mainnet (not a testnet)

  1. Open wallet
  2. Press Bridge
  3. Enter eth amount
  4. Pick "optimism" network
  5. Click "Bridge", enter fingerprint (on Macos)
DBG 2024-07-29 18:25:38.684+04:00 NewBE_callPrivateRPC                       topics="rpc" tid=8670299 file=core.nim:27 rpc_method=wallet_getSuggestedRoutesV2Async
WRN 2024-07-29 18:25:38.826+04:00 qt warning                                 topics="qt" tid=8670299 text="QML Loader: Binding loop detected for property \"active\"" file=qrc:/imports/shared/controls/InformationTag.qml:87 category=default
DBG 2024-07-29 18:25:41.871+04:00 NewBE_callPrivateRPC                       topics="rpc" tid=8670299 file=core.nim:27 rpc_method=wallet_getSuggestedRoutesV2Async
WRN 2024-07-29 18:25:46.240+04:00 qt warning                                 topics="qt" tid=8670299 text="QML Loader: Binding loop detected for property \"active\"" file=qrc:/imports/shared/controls/InformationTag.qml:87 category=default
DBG 2024-07-29 18:25:49.043+04:00 NewBE_callPrivateRPC                       topics="rpc" tid=8670299 file=core.nim:27 rpc_method=wakuext_speedupArchivesImport
DBG 2024-07-29 18:25:50.906+04:00 NewBE_callPrivateRPC                       topics="rpc" tid=8670299 file=core.nim:27 rpc_method=wakuext_slowdownArchivesImport
DBG 2024-07-29 18:25:50.914+04:00 NewBE_callPrivateRPC                       topics="rpc" tid=8670299 file=core.nim:27 rpc_method=accounts_verifyPassword
DBG 2024-07-29 18:25:51.211+04:00 keycardCancelFlow                          topics="keycard-service" tid=8670299 file=service.nim:189 kcServiceCurrFlow=NoFlow response="cannot cancel idle flow"
DBG 2024-07-29 18:25:51.211+04:00 NewBE_callPrivateRPC                       topics="rpc" tid=8670299 file=core.nim:27 rpc_method=accounts_makePartiallyOperableAccoutsFullyOperable
DBG 2024-07-29 18:25:51.214+04:00 NewBE_callPrivateRPC                       topics="rpc" tid=8670299 file=core.nim:27 rpc_method=wallet_createMultiTransaction
DBG 2024-07-29 18:25:52.058+04:00 keycardCancelFlow                          topics="keycard-service" tid=8670299 file=service.nim:189 kcServiceCurrFlow=NoFlow response="cannot cancel idle flow"
DBG 2024-07-29 18:25:52.062+04:00 keycardStartFlow                           topics="keycard-service" tid=8670299 file=service.nim:168 kcServiceCurrFlow=Sign payload="{\"tx-hash\":\"7ce279c2ee13af4249598d32f47425240f0da560904d163b9e7631fa9bc3564e\",\"bip44-path\":\"m/44'/60'/0'/0/0\"}" response=ok
keycard - listing readers
keycard - no-reader-found
DBG 2024-07-29 18:25:52.101+04:00 keycard_signal                             topics="keycard-service" tid=8670299 file=service.nim:118 response="{\"type\":\"keycard.flow-result\",\"event\":{\"error\":\"no-reader-found\"}}"
DBG 2024-07-29 18:25:52.302+04:00 keycardCancelFlow                          topics="keycard-service" tid=8670299 file=service.nim:189 kcServiceCurrFlow=NoFlow response="cannot cancel idle flow"
DBG 2024-07-29 18:25:52.302+04:00 keycardStartFlow                           topics="keycard-service" tid=8670299 file=service.nim:168 kcServiceCurrFlow=Sign payload="{\"tx-hash\":\"7ce279c2ee13af4249598d32f47425240f0da560904d163b9e7631fa9bc3564e\",\"bip44-path\":\"m/44'/60'/0'/0/0\"}" response=ok
keycard - listing readers
keycard - no-reader-found
DBG 2024-07-29 18:25:52.307+04:00 keycard_signal                             topics="keycard-service" tid=8670299 file=service.nim:118 response="{\"type\":\"keycard.flow-result\",\"event\":{\"error\":\"no-reader-found\"}}"
DBG 2024-07-29 18:25:52.508+04:00 keycardCancelFlow                          topics="keycard-service" tid=8670299 file=service.nim:189 kcServiceCurrFlow=NoFlow response="cannot cancel idle flow"
DBG 2024-07-29 18:25:52.508+04:00 keycardStartFlow                           topics="keycard-service" tid=8670299 file=service.nim:168 kcServiceCurrFlow=Sign payload="{\"tx-hash\":\"7ce279c2ee13af4249598d32f47425240f0da560904d163b9e7631fa9bc3564e\",\"bip44-path\":\"m/44'/60'/0'/0/0\"}" response=ok
keycard - listing readers
keycard - no-reader-found <----- these 2 lines keep spamming every second

https://github.com/user-attachments/assets/3addf2ec-0004-4515-bf2c-83324aa04cb5

Expected behavior

Eth is transfered from Mainnet to Optimism

Actual behavior

The App is stuck, spinner

Additional Information

jrainville commented 3 months ago

cc @saledjenic

saledjenic commented 3 months ago

A lot of context is missing here, I cannot see from the attached video what's really happening and what was the entire flow from the moment Send modal was opened.

But as I see in the log, the selected account belongs to a key pair that is migrated to a keycard and the app cannot find the reader either because of some low-level issues or it was not connected.

saledjenic commented 3 months ago

@friofry could you please confirm if the related key pair (one the selected "Account 1" belongs to) was migrated to a keycard? Have you used a keycard for that account to sign a tx? And are you able to reproduce it again?

jrainville commented 3 months ago

I think the issue is because the wallet thinks the account is a keycard even if it's not really. See issue here: https://github.com/status-im/status-desktop/issues/15899

saledjenic commented 3 months ago

@friofry could you please check if it's reproducible in the build from this PR: https://github.com/status-im/status-desktop/pull/15917 cause it handles migration issues on the statusgo side which caused this behaviour.