Skip to content
This repository was archived by the owner on Nov 15, 2021. It is now read-only.

Gracefully handle NEP-5 balance query failures #744

Merged
merged 2 commits into from
Dec 9, 2018
Merged

Gracefully handle NEP-5 balance query failures #744

merged 2 commits into from
Dec 9, 2018

Conversation

ixje
Copy link
Member

@ixje ixje commented Dec 7, 2018

What current issue(s) does this address, or what feature is it adding?
Say you have a wallet with "custom token x", that you've been developing on your network. If you switch network (e.g. to mainnet or a place that does not have that token) and try to use wallet to view the contents it will throw a flurry of exceptions.

How did you solve this problem?
apply error checking, print a useful error message.

How did you make sure your solution works?
make test

Are there any special changes in the code that we should be aware of?
test_invoke now returns an additional boolean indicating the VM execution status

Please check the following, if applicable:

  • Did you add any tests?
  • Did you run make lint?
  • Did you run make test?
  • Are you making a PR to a feature branch or development rather than master?
  • Did you add an entry to CHANGELOG.rst? (if not, please do)

@jseagrave21
Copy link
Contributor

This looks great. I think we should merge this into refactor-prompt as well.

@ixje ixje merged commit f076936 into CityOfZion:development Dec 9, 2018
jseagrave21 added a commit to jseagrave21/neo-python that referenced this pull request Dec 11, 2018
Gracefully handle NEP-5 balance query failures (CityOfZion#744)
@ixje ixje deleted the nep5_import branch December 20, 2018 07:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants