Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled Exception: Bad state: No element #4

Closed
zhbh opened this issue Jun 5, 2020 · 2 comments
Closed

Unhandled Exception: Bad state: No element #4

zhbh opened this issue Jun 5, 2020 · 2 comments

Comments

@zhbh
Copy link
Collaborator

zhbh commented Jun 5, 2020

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.

@ltfschoen
Copy link

I've in the process of updating the smart contract here DataHighway-DHX/mining#11 and trying to get it to integrate with the app.

@ltfschoen
Copy link

ltfschoen commented Jun 24, 2020

@zhbh could you please try using the latest .env that i provided for you to use in WeChat, along with the latest commit in the develop_sam branch and see if we can close this issue?

@zhbh zhbh closed this as completed Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants