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

(Refactor) Of method getOwnerApplicationsInstancesForProxy #1046

Closed
wants to merge 1 commit into from

Conversation

fernandomg
Copy link
Contributor

Refactors getOwnerApplicationsInstancesForProxy

  • makes use of async/await syntax
  • sorts the result of contracts from newest to oldest

Check the discussion about this refactor for reference

 - makes use of async/await syntax
 - sorts the result of contracts from newest to oldest
resolve()
const contracts = []

for (const execID of execIDs) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

@fernandomg if I'm not wrong, in this case, smart-contracts' functions' execution will be made in a sequence, instead of parallel calls (from the current implementation). Thus, suggested implementation is slower for the number of proxy addresses greater then 1, isn't it? What are the benefits of suggested implementation?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're completely right, there's no benefit from my suggestion. My main idea was to make it more readable, but there's no performance benefit from it. I'll just close it.

Thank you!

@BlackDuckCoPilot
Copy link

BlackDuckCoPilot commented Jul 18, 2018

Black Duck Security Report

Branch 2.0 has no Black Duck results, and could not be compared to #1046. Analyze branch 2.0 to get a change comparison.

Removed Components

Medium Risk: 156
Clean: 17823

Click here to see full report

@fernandomg fernandomg closed this Jul 30, 2018
@ghost ghost removed the awaiting for review label Jul 30, 2018
@fernandomg fernandomg deleted the refactor-getOwnerApplicationInstanceForProxy branch July 30, 2018 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants