-
Notifications
You must be signed in to change notification settings - Fork 75
ETCM-468-complement get proof service tests #926
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might be missing something. But could we please add a test like
return the proof and value for a request without storage keys
?
Good point, I pushed the test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, did not run the test myself though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ This pull request was sent to the PullRequest network.
@bsuieric you can click here to see the review status or cancel the code review job - or - cancel by adding [!pr] to the title of the pull request.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a reasonable elaboration of these tests. Now that they're more comprehensive, it may make sense to try to deduplicate them. Is there some reasonable notion of a correspondence between an accountProof
and a context that can exist outside of any given test and that describes some feature of the domain?
Reviewed with ❤️ by PullRequest
r => | ||
r.proofAccount.storageProof.map(v => { | ||
r => { | ||
val accountProof = r.proofAccount |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there could be, but I would make it explicit for each test. In my opinion it makes it more readable and easier in case we change some input values in the future
925ba1e
to
93333bb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ Warning
PullRequest detected a force-push on this branch. This may have caused some information to be lost, and additional time may be required to complete review of the code. Read More
Adding some assertions for getProof service tests