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

Extend AccountPublic to allow retrieval of Factory and Filter capabilities #153

Merged
merged 3 commits into from
Sep 6, 2023

Conversation

austinkline
Copy link
Collaborator

@austinkline austinkline commented Aug 25, 2023

Without this, it's very difficult to detect whether a certain capability is allowed to be retrieved unless you run scripts manually. With helper methods like this (I'm sure others will be needed), you can borrow and return details of the filter/factory yourself and then process them offline

@codecov-commenter
Copy link

Codecov Report

Merging #153 (33740a1) into main (dd77f1b) will decrease coverage by 0.19%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##             main     #153      +/-   ##
==========================================
- Coverage   82.50%   82.31%   -0.19%     
==========================================
  Files           4        4              
  Lines         343      345       +2     
==========================================
+ Hits          283      284       +1     
- Misses         60       61       +1     
Files Changed Coverage Δ
contracts/HybridCustody.cdc 81.18% <50.00%> (-0.24%) ⬇️

Copy link
Collaborator

@sisyphusSmiling sisyphusSmiling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates, great additions! Added a few np & questions.

scripts/test/can_get_child_factory_and_filter_caps.cdc Outdated Show resolved Hide resolved
scripts/test/can_get_child_factory_and_filter_caps.cdc Outdated Show resolved Hide resolved
contracts/HybridCustody.cdc Outdated Show resolved Hide resolved
contracts/HybridCustody.cdc Outdated Show resolved Hide resolved
…ter capabilities.

Without this, it's very difficult to detect whether a certain capability is allowed to be retrieved unless you run scripts manually. With helper method like this (I'm sure others will be needed), you can borrow and return details of the filter/factory yourself and then process them offline
@austinkline
Copy link
Collaborator Author

Sorry for the delay, addressed comments @sisyphusSmiling

Copy link
Collaborator

@sisyphusSmiling sisyphusSmiling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @austinkline!

@sisyphusSmiling sisyphusSmiling merged commit 8e4f566 into onflow:main Sep 6, 2023
1 check passed
@sisyphusSmiling
Copy link
Collaborator

FYI these updates have been deployed in the following transactions:

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

Successfully merging this pull request may close these issues.

3 participants