status-im / status-desktop

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

[Wallet Connect] Cannot buy token from Rarible #16116

Open alexjba opened 1 month ago

alexjba commented 1 month ago

Bug Report

Case 1

Used dapp: Rarible

Buying on mainnet (using keycard) results in status-go error [methodName:wallet_sendTransactionWithSignature, code:-32000, message:eth-archival.rpc.grove.city.error: Gas price too low, mainnet.infura.io.error: replacement transaction underpriced ] Turn on screen reader support

Case 2

Used dapp: Rarible

The same/similar happened here as in previous issue, I tried to buy on mainnet this: https://rarible.com/token/0x42b075d31e706fb38f7e236ad2aa66a1460cf721:8487

status-go error [methodName:wallet_sendTransactionWithSignature, code:-32000, message:eth-archival.rpc.grove.city.error: Gas price too low, mainnet.infura.io.error: replacement transaction underpriced ]

It could be up to the dapp! We have to check.

Issue identified by @saledjenic in https://docs.google.com/spreadsheets/d/1QkV08jm0ECV01x3yWTLnVGCjTluKQ-IBDJXsHjNeAQg/edit?gid=0#gid=0

virginiabalducci commented 1 week ago

I am unable to purchase the above mentioned collectible. I'm not using keycard.

I'm able to connect the dApp to the Desktop App via Wallet Connect, click Buy on the collectible and then I can approve the Sign Request on the Desktop App. But nothing else happens and the following can be seen:

https://github.com/user-attachments/assets/50e7d2c5-0046-4d22-8d32-24f37e0a2cd9

Console errors:

ERR 2024-09-05 15:17:04.768-03:00 rpc response error                         topics="rpc" tid=24844086 file=core.nim:36 err="\nstatus-go error [methodName:connector_sendTransactionAccepted, code:-32000, message:empty requestID ]\n"
ERR 2024-09-05 15:17:04.768-03:00 error doing rpc request                    topics="rpc" tid=24844086 file=core.nim:39 methodName=connector_sendTransactionAccepted exception="\nstatus-go error [methodName:connector_sendTransactionAccepted, code:-32000, message:empty requestID ]\n"
ERR 2024-09-05 15:17:04.768-03:00 sendTransactionAcceptedFinishedRpc failed:  topics="connector-service" 

Console log with more context

DBG 2024-09-05 15:16:56.980-03:00 NewBE_callPrivateRPC                       topics="rpc" tid=24844086 file=core.nim:27 rpc_method=wakuext_slowdownArchivesImport
DBG 2024-09-05 15:17:00.512-03:00 NewBE_callPrivateRPC                       topics="rpc" tid=24844086 file=core.nim:27 rpc_method=wakuext_speedupArchivesImport
DBG 2024-09-05 15:17:02.385-03:00 NewBE_callPrivateRPC                       topics="rpc" tid=24844086 file=core.nim:27 rpc_method=wakuext_slowdownArchivesImport
DBG 2024-09-05 15:17:02.418-03:00 NewBE_callPrivateRPC                       topics="rpc" tid=24844086 file=core.nim:27 rpc_method=accounts_verifyPassword
DBG 2024-09-05 15:17:02.691-03:00 NewBE_callPrivateRPC                       topics="rpc" tid=24844086 file=core.nim:27 rpc_method=accounts_makePartiallyOperableAccoutsFullyOperable
DBG 2024-09-05 15:17:02.782-03:00 NewBE_callPrivateRPC                       topics="rpc" tid=24844086 file=core.nim:27 rpc_method=wallet_buildTransaction
DBG 2024-09-05 15:17:03.098-03:00 NewBE_callPrivateRPC                       topics="rpc" tid=24844086 file=core.nim:27 rpc_method=wallet_signMessage
DBG 2024-09-05 15:17:03.189-03:00 NewBE_callPrivateRPC                       topics="rpc" tid=24844086 file=core.nim:27 rpc_method=wallet_sendTransactionWithSignature
DBG 2024-09-05 15:17:04.766-03:00 qt message                                 topics="qt" tid=24844086 text="WC WalletConnectSDK.wcCall.acceptSessionRequest; topic: \"caa4fbe69993938fe6029d565f188562330d779bd3dbe30cc6d744c31d6ba2be\", id: 1725560214450712, signature: \"0x0010b4ab9c7188382a0e5f1b918cef7be8ff9a8d6da39018bd8349f2d590b7b6\"" file=qrc:/app/AppLayouts/Wallet/services/dapps/WalletConnectSDK.qml:188 category=qml
DBG 2024-09-05 15:17:04.767-03:00 qt message                                 topics="qt" tid=24844086 text="Connector DappsConnectorSDK.acceptSessionRequest; requestId: , signature: \"0x0010b4ab9c7188382a0e5f1b918cef7be8ff9a8d6da39018bd8349f2d590b7b6\"" file=qrc:/app/AppLayouts/Wallet/services/dapps/DappsConnectorSDK.qml:296 category=qml
DBG 2024-09-05 15:17:04.767-03:00 NewBE_callPrivateRPC                       topics="rpc" tid=24844086 file=core.nim:27 rpc_method=connector_sendTransactionAccepted
ERR 2024-09-05 15:17:04.768-03:00 rpc response error                         topics="rpc" tid=24844086 file=core.nim:36 err="\nstatus-go error [methodName:connector_sendTransactionAccepted, code:-32000, message:empty requestID ]\n"
ERR 2024-09-05 15:17:04.768-03:00 error doing rpc request                    topics="rpc" tid=24844086 file=core.nim:39 methodName=connector_sendTransactionAccepted exception="\nstatus-go error [methodName:connector_sendTransactionAccepted, code:-32000, message:empty requestID ]\n"
ERR 2024-09-05 15:17:04.768-03:00 sendTransactionAcceptedFinishedRpc failed:  topics="connector-service" tid=24844086 file=service.nim:114 err="\nstatus-go error [methodName:connector_sendTransactionAccepted, code:-32000, message:empty requestID ]\n"
WRN 2024-09-05 15:17:04.768-03:00 qt warning                                 topics="qt" tid=24844086 text="TypeError: Cannot read property 'url' of null" file=qrc:/app/AppLayouts/Wallet/services/dapps/DappsConnectorSDK.qml:301 category=default
ERR 2024-09-05 15:17:04.768-03:00 qt error                                   topics="qt" tid=24844086 text=">Error finding event for topic caa4fbe69993938fe6029d565f188562330d779bd3dbe30cc6d744c31d6ba2be id 1725560214450712" file=qrc:/app/AppLayouts/Wallet/services/dapps/DappsConnectorSDK.qml:344 category=qml
DBG 2024-09-05 15:17:05.149-03:00 qt message                                 topics="qt" tid=24844086 text="WC WalletConnectSDK.onAcceptSessionRequestResponse; topic: caa4fbe69993938fe6029d565f188562330d779bd3dbe30cc6d744c31d6ba2be, id: 1725560214450712 error: " file=qrc:/app/AppLayouts/Wallet/services/dapps/WalletConnectSDK.qml:325 category=qml
DBG 2024-09-05 15:17:05.149-03:00 qt message                                 topics="qt" tid=24844086 text="WC WalletConnectSDK.wcCall.getActiveSessions;" file=qrc:/app/AppLayouts/Wallet/services/dapps/WalletConnectSDK.qml:112 category=qml
DBG 2024-09-05 15:17:24.010-03:00 NewBE_callPrivateRPC                       topics="rpc" tid=24844086 file=core.nim:27 rpc_method=wallet_addEthereumChain
DBG 2024-09-05 15:17:24.011-03:00 NewBE_callPrivateRPC                       topics="rpc" tid=24844086 file=core.nim:27 rpc_method=wallet_getEthereumChains
DBG 2024-09-05 15:17:24.015-03:00 NewBE_callPrivateRPC                       topics="rpc" tid=24844086 file=core.nim:27 rpc_method=ens_getEnsUsernames
WRN 2024-09-05 15:17:24.016-03:00 expected response is not a json object     topics="ens-service" tid=24844086 file=service.nim:163 procName=getAllMyEnsUsernames
DBG 2024-09-05 15:17:24.017-03:00 NewBE_callPrivateRPC                       topics="rpc" tid=24844086 file=core.nim:27 rpc_method=settings_saveSetting
DBG 2024-09-05 15:17:24.034-03:00 NewBE_callPrivateRPC                       topics="rpc" tid=24844086 file=core.nim:27 rpc_method=wallet_stopActivityFilterSession
DBG 2024-09-05 15:17:24.035-03:00 NewBE_callPrivateRPC                       topics="rpc" tid=24844086 file=core.nim:27 rpc_method=wallet_startActivityFilterSession
DBG 2024-09-05 15:17:24.036-03:00 [threadpool task thread] initiating task   topics="task-threadpool" tid=24844120 file=threadpool.nim:56 messageType=BuildTokensTaskArg:ObjectType threadid=24844120 task="{\"$type\":\"BuildTokensTaskArg:ObjectType\",\"accounts\":[\"0x32e12fd7c2c7984dd6de153691d901445fc8aa07\",\"0x9e5b664af1afcaa853155cb3f37ce25384483c1c\",\"0x94bcd7c8b4c1822fe299019d4bdf35625c0c9969\"],\"storeResult\":true,\"vptr\":105553140628640,\"slot\":\"onAllTokensBuilt\"}"
DBG 2024-09-05 15:17:24.037-03:00 NewBE_callPrivateRPC                       topics="rpc" tid=24844120 file=core.nim:27 rpc_method=wallet_fetchOrGetCachedWalletBalances
DBG 2024-09-05 15:17:29.750-03:00 NewBE_callPrivateRPC                       topics="rpc" tid=24844086 file=core.nim:27 rpc_method=wakuext_speedupArchivesImport