datahighway-dhx / app Goto Github PK
View Code? Open in Web Editor NEWThis project forked from polkawallet-io/polkawallet-flutter
DataHighway App based on Polkawallet Flutter Implementation
License: Apache License 2.0
This project forked from polkawallet-io/polkawallet-flutter
DataHighway App based on Polkawallet Flutter Implementation
License: Apache License 2.0
hi,@ltfschoen. When I debug interface getAccountLockedClaimsApprovedOfMXCAmountFromDataHighwayMXCMiningContract
, it reports one exception, which it ran its code.
and My abiCode is here.
Flutter Excetpion:
`E/flutter (11893): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: Bad state: No element
E/flutter (11893): #0 ListMixin.singleWhere (dart:collection/list.dart:185:5)
E/flutter (11893): #1 DeployedContract.event
package:web3dart/…/contracts/deployed_contract.dart:42
E/flutter (11893): #2 EthereumApiMiningMXC.getAccountLockedClaimsApprovedOfMXCAmountFromDataHighwayMXCMiningContract
package:polka_wallet/…/ethereumApi/apiMiningMXC.dart:421
E/flutter (11893):
E/flutter (11893): #3 Ethereum.fetchMXCLockedClaimsApproved
package:polka_wallet/…/ethereumApi/api.dart:68
E/flutter (11893):
E/flutter (11893): #4 Ethereum.init
package:polka_wallet/…/ethereumApi/api.dart:40
E/flutter (11893):
E/flutter (11893): #5 _WalletAppState._initStore
package:polka_wallet/app.dart:104
E/flutter (11893): #6 _asyncThenWrapperHelper. (dart:async-patch/async_patch.dart:73:64)
E/flutter (11893): #7 _rootRunUnary (dart:async/zone.dart:1134:38)
E/flutter (11893): #8 _CustomZone.runUnary (dart:async/zone.dart:1031:19)
E/flutter (11893): #9 _FutureListener.handleValue (dart:async/future_impl.dart:139:18)
E/flutter (11893): #10 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:680:45)
E/flutter (11893): polkawallet-io#11 Future._propagateToListeners (dart:async/future_impl.dart:709:32)
E/flutter (11893): polkawallet-io#12 Future._completeWithValue (dart:async/future_impl.dart:524:5)
E/flutter (11893): polkawallet-io#13 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:32:15)
`
It causes that I can not get the right result.
this is my branch develop_sam, and run this project, it would show this issue:
I/chromium(15810): [INFO:CONSOLE(33)] "WebSocket connection to 'wss://testnet-harbour.datahighway.com/' failed: Error in connection establishment: net::ERR_NAME_NOT_RESOLVED", source: (33)
no more detail to view in the error log.
hi, @ltfschoen. When I ran the code, it appears the issue as follows, but it can not stop me to get the correct result. However, I think it should have some effects if it runs successfully.
The Flutter Exception:
[ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: WebSocketChannelException: WebSocketChannelException: WebSocketException: Connection to 'https://mainnet.infura.io:0/v3/031a0a2b799c44a0b3539c1e86e6cbd9#' was not upgraded to websocket
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.