archethic-foundation / archethic-foundation/bridge
Wagmi error: r.connector.getChainId is not a function
- Dominant language
- Dart
- Stars
- 2
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the problem you discovered
Error in grafana
```
[{"timestamp":"2024-10-29T23:37:06.645","message":"null - r.connector.getChainId is not a function - null - null - {}","level":"LogLevel.error","stacktrace":"\n at Object.e (https://bridge.archethic.net/main.dart.js:3521:19)\n at https://bridge.archethic.net/main.dart.js:38548:9\n at br8.a (https://bridge.archethic.net/main.dart.js:4946:63)\n at br8.$2 (https://bridge.archethic.net/main.dart.js:51568:14)\n at bpC.$2 (https://bridge.archethic.net/main.dart.js:51565:16)\n at ZD.AS (https://bridge.archethic.net/main.dart.js:52774:35)\n at o8.aUB (https://bridge.archethic.net/main.dart.js:51876:18)\n at bgp.$0 (https://bridge.archethic.net/main.dart.js:52025:37)\n at Object.L_ (https://bridge.archethic.net/main.dart.js:5104:78)\n at an.kT (https://bridge.archethic.net/main.dart.js:51952:3)","name":"EVMBridgeProcessMixin - EVMHTLCERC - approveChargeableHTLC"},{"timestamp":"2024-10-29T23:37:06.646","message":"e Failure.other(cause: null, stack: null)","level":"LogLevel.error","stacktrace":"\n at Object.e (https://bridge.archethic.net/main.dart.js:3521:19)\n at https://bridge.archethic.net/main.dart.js:61174:9\n at br8.a (https://bridge.archethic.net/main.dart.js:4946:63)\n at br8.$2 (https://bridge.archethic.net/main.dart.js:51568:14)\n at bpC.$2 (https://bridge.archethic.net/main.dart.js:51565:16)\n at ZD.AS (https://bridge.archethic.net/main.dart.js:52774:35)\n at o8.aUB (https://bridge.archethic.net/main.dart.js:51876:18)\n at bgp.$0 (https://bridge.archethic.net/main.dart.js:52025:37)\n at Object.L_ (https://bridge.archethic.net/main.dart.js:5104:78)\n at an.kT (https://bridge.archethic.net/main.dart.js:51952:3)","name":"EVMHTLCERC - approveChargeableHTLC"}]
```
### Describe the solution you'd like
_No response_
### Epic
_No response_
Contributor guide
Research direction
Start with the EVMBridgeProcessMixin and EVMHTLCERC approveChargeableHTLC entry points referenced in the Grafana error, then trace the connector call behind the compiled main.dart.js stack. Reproduce the approval flow and identify why the connector lacks getChainId. Done means approveChargeableHTLC completes without this error and the failure is covered by the relevant test or verification flow.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart
- Domain
- blockchain
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100