Skip to content

feat(agent): changes required for issue credential and presentation proof to work #84

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
merged 4 commits into from
Mar 20, 2023

Conversation

goncalo-frade-iohk
Copy link
Contributor

No description provided.

Copy link
Contributor

@hamada147 hamada147 left a comment

Choose a reason for hiding this comment

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

LGTM

}

// TODO: This function is not the most appropriate but will do the job now to change later.
private func findValue(forKey key: String, in json: Any) -> String? {
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this chanege from private to fileprivate

Suggested change
private func findValue(forKey key: String, in json: Any) -> String? {
fileprivate func findValue(forKey key: String, in json: Any) -> String? {

}

// TODO: This function is not the most appropriate but will do the job now to change later.
private func findValue(forKey key: String, in json: Any) -> String? {
Copy link
Contributor

Choose a reason for hiding this comment

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

I understand the need for duplication for this function, but shouldn't this change from private to fileprivate

Suggested change
private func findValue(forKey key: String, in json: Any) -> String? {
fileprivate func findValue(forKey key: String, in json: Any) -> String? {

Copy link
Contributor Author

@goncalo-frade-iohk goncalo-frade-iohk Mar 20, 2023

Choose a reason for hiding this comment

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

Not really fileprivate is more for when you got private code inside of class and you want to access it lets say in an extension of that class in the same file. With private that would not be possible.

This is a func outside of any class/struct fileprivate would not add anything more. ;)

@goncalo-frade-iohk goncalo-frade-iohk merged commit 5c94352 into main Mar 20, 2023
@goncalo-frade-iohk goncalo-frade-iohk deleted the feature/ATL-3097 branch March 20, 2023 16:21
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.

2 participants