-
Notifications
You must be signed in to change notification settings - Fork 598
refactor: make get_notes fail if returning no notes #4988 #5320
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
Merged
sklppy88
merged 19 commits into
master
from
ek/refactor/get-notes-fails-if-returning-no-notes
Mar 22, 2024
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
1f033aa
Fix
d959504
add failing test
3402cb3
fix
c7b8176
Merge branch 'master' into ek/refactor/get-notes-fails-if-returning-n…
sklppy88 0c50892
Fixing broken tests
7ad5ad4
token
b1bf1dd
fix pending note hash contract
adb29ea
fix
16a7de1
fix
f75b7db
fix
109aee5
fix
2353c11
fix
81a62bc
Merge branch 'master' into ek/refactor/get-notes-fails-if-returning-n…
f746893
Merge branch 'master' into ek/refactor/get-notes-fails-if-returning-n…
sklppy88 48c56c6
comments
a8c9971
yarn format
1326bd4
fix
6939c8f
format
446ca47
Merge branch 'master' into ek/refactor/get-notes-fails-if-returning-n…
sklppy88 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,6 +22,9 @@ describe('e2e_static_calls', () => { | |
|
|
||
| describe('parent calls child', () => { | ||
| it('performs legal private to private static calls', async () => { | ||
| // We create a note in the set, so... | ||
| await childContract.methods.privateSetValue(42n, wallet.getCompleteAddress().address).send().wait(); | ||
| // ...this call doesn't fail due to get_notes returning 0 notes | ||
| await parentContract.methods | ||
| .privateStaticCall(childContract.address, childContract.methods.privateGetValue.selector, [ | ||
| 42n, | ||
|
|
@@ -32,6 +35,9 @@ describe('e2e_static_calls', () => { | |
| }, 100_000); | ||
|
|
||
| it('performs legal (nested) private to private static calls', async () => { | ||
| // We create a note in the set, so... | ||
| await childContract.methods.privateSetValue(42n, wallet.getCompleteAddress().address).send().wait(); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would add a comment here for why you needed to do this change. |
||
| // ...this call doesn't fail due to get_notes returning 0 notes | ||
| await parentContract.methods | ||
| .privateStaticCallNested(childContract.address, childContract.methods.privateGetValue.selector, [ | ||
| 42n, | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Would add a comment here for why you needed to do this change.