-
Notifications
You must be signed in to change notification settings - Fork 152
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
Turn BlockChain.GetStates() into GetState() #563
Turn BlockChain.GetStates() into GetState() #563
Conversation
@qtuu Great work! As you say, |
Codecov Report
@@ Coverage Diff @@
## master #563 +/- ##
==========================================
- Coverage 90.86% 89.09% -1.77%
==========================================
Files 201 177 -24
Lines 15230 14532 -698
==========================================
- Hits 13838 12948 -890
- Misses 1101 1300 +199
+ Partials 291 284 -7
|
/rebase |
I am sorry. Should I have done a rebase merge? I am at loss here |
When no stateReference is found, we need to return early. This was done implicitly by iterating over an empty stateReferences-HashSet.
Co-Authored-By: Seunghun Lee <[email protected]>
Co-Authored-By: Seunghun Lee <[email protected]>
use pattern matching Co-Authored-By: Swen Mun <[email protected]>
2820872
to
45f82c8
Compare
We tried to do an automatic rebase, but it didn't work. So I rebased it manually. |
@qtuu Thanks for the contribution. |
An attempt to solve Issue #510
It feels super wonky to still use AddressStateMap as a returnvalue, because it will always have just the one entry. I tried to make it return the (object) value instead, but failed misserably on a serialization-issue, breaking most of the use-cases.
If you guys want me to pursuit a better return value, i could try again...
Anyways, looking forward to your feedback :)