archethic-foundation / bridge

GNU Affero General Public License v3.0
1 stars 2 forks source link

Null error when Ledger is not connected #118

Closed redDwarf03 closed 5 months ago

redDwarf03 commented 5 months ago

Describe the problem you discovered

With Frame, when users want to bridge AE to EVM, a null error is displayed when the EVM HTLC should be created Example AE -> Sepolia (UCO)

Logs

[{"message":"gasPrice=EtherAmount: 35939368476 wei, maxPriorityFeePerGas=EtherAmount: 1000000000 wei, maxFeePerGas=EtherAmount: 46919157968 wei","level":"LogLevel.info","timestamp":"2024-05-21T13:40:11.782","stacktrace":"null","name":"EVMBridgeProcessMixin - sendTransactionWithErrorManagement"},{"message":"EthereumException: -1 Transaction is not from currently selected account","level":"LogLevel.error","timestamp":"2024-05-21T13:40:11.795","stacktrace":"EthereumException: -1 Transaction is not from currently selected account\n    at Object.d (https://bridge.testnet.archethic.net/main.dart.js?v=1793535787:3308:19)\n    at Object.bmD (https://bridge.testnet.archethic.net/main.dart.js?v=1793535787:41197:35)\n    at aDc.$2 (https://bridge.testnet.archethic.net/main.dart.js?v=1793535787:140513:11)\n    at aJ2.$2 (https://bridge.testnet.archethic.net/main.dart.js?v=1793535787:50185:15)\n    at Ya.A1 (https://bridge.testnet.archethic.net/main.dart.js?v=1793535787:51149:35)\n    at ng.aSe (https://bridge.testnet.archethic.net/main.dart.js?v=1793535787:50220:18)\n    at b7J.$0 (https://bridge.testnet.archethic.net/main.dart.js?v=1793535787:50374:37)\n    at Object.Jw (https://bridge.testnet.archethic.net/main.dart.js?v=1793535787:4873:78)\n    at ao.j1 (https://bridge.testnet.archethic.net/main.dart.js?v=1793535787:50292:3)\n    at b7C.$0 (https://bridge.testnet.archethic.net/main.dart.js?v=1793535787:50337:13)","name":"EVMBridgeProcessMixin - sendTransactionWithErrorManagement"},{"message":"Failure.other(cause: null, stack: Transaction is not from currently selected account)","level":"LogLevel.error","timestamp":"2024-05-21T13:40:11.795","stacktrace":"Failure.other(cause: null, stack: Transaction is not from currently selected account)\n    at Object.d (https://bridge.testnet.archethic.net/main.dart.js?v=1793535787:3308:19)\n    at https://bridge.testnet.archethic.net/main.dart.js?v=1793535787:60206:9\n    at biG.a (https://bridge.testnet.archethic.net/main.dart.js?v=1793535787:4722:63)\n    at biG.$2 (https://bridge.testnet.archethic.net/main.dart.js?v=1793535787:49900:14)\n    at bh1.$2 (https://bridge.testnet.archethic.net/main.dart.js?v=1793535787:49897:16)\n    at Ya.A1 (https://bridge.testnet.archethic.net/main.dart.js?v=1793535787:51149:35)\n    at ng.aSe (https://bridge.testnet.archethic.net/main.dart.js?v=1793535787:50220:18)\n    at b7J.$0 (https://bridge.testnet.archethic.net/main.dart.js?v=1793535787:50374:37)\n    at Object.Jw (https://bridge.testnet.archethic.net/main.dart.js?v=1793535787:4873:78)\n    at ao.j1 (https://bridge.testnet.archethic.net/main.dart.js?v=1793535787:50292:3)","name":"EVMLP - deployAndProvisionSignedHTLC"}]

[{"message":"gasPrice=EtherAmount: 35939368476 wei, maxPriorityFeePerGas=EtherAmount: 1000000000 wei, maxFeePerGas=EtherAmount: 46919157968 wei","level":"LogLevel.info","timestamp":"2024-05-21T13:40:11.782","stacktrace":"null","name":"EVMBridgeProcessMixin - sendTransactionWithErrorManagement"},{"message":"EthereumException: -1 Transaction is not from currently selected account","level":"LogLevel.error","timestamp":"2024-05-21T13:40:11.795","stacktrace":"EthereumException: -1 Transaction is not from currently selected account\n    at Object.d (https://bridge.testnet.archethic.net/main.dart.js?v=1793535787:3308:19)\n    at Object.bmD (https://bridge.testnet.archethic.net/main.dart.js?v=1793535787:41197:35)\n    at aDc.$2 (https://bridge.testnet.archethic.net/main.dart.js?v=1793535787:140513:11)\n    at aJ2.$2 (https://bridge.testnet.archethic.net/main.dart.js?v=1793535787:50185:15)\n    at Ya.A1 (https://bridge.testnet.archethic.net/main.dart.js?v=1793535787:51149:35)\n    at ng.aSe (https://bridge.testnet.archethic.net/main.dart.js?v=1793535787:50220:18)\n    at b7J.$0 (https://bridge.testnet.archethic.net/main.dart.js?v=1793535787:50374:37)\n    at Object.Jw (https://bridge.testnet.archethic.net/main.dart.js?v=1793535787:4873:78)\n    at ao.j1 (https://bridge.testnet.archethic.net/main.dart.js?v=1793535787:50292:3)\n    at b7C.$0 (https://bridge.testnet.archethic.net/main.dart.js?v=1793535787:50337:13)","name":"EVMBridgeProcessMixin - sendTransactionWithErrorManagement"}]

[{"message":"gasPrice=EtherAmount: 35939368476 wei, maxPriorityFeePerGas=EtherAmount: 1000000000 wei, maxFeePerGas=EtherAmount: 46919157968 wei","level":"LogLevel.info","timestamp":"2024-05-21T13:40:11.782","stacktrace":"null","name":"EVMBridgeProcessMixin - sendTransactionWithErrorManagement"}]

Describe the solution you'd like

No response

Epic

No response

redDwarf03 commented 5 months ago

Resume feature is not available on local history