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

AKI-435: Refactoring ContractDetails (Part 1) #1019

Merged
merged 6 commits into from
Oct 21, 2019
Merged

Conversation

AlexandraRoatis
Copy link
Contributor

Description

  • Updating ContractDetails interface to avoid cast to AbstractContractDetails;
  • Removed setStorage method from ContractDetails interface. The method was used only for testing, so it was moved to the test class.
  • Copied AbstractContractDetails into ContractDetailsCacheImpl. Removed inheritance from AbstractContractDetails and instance variables that were not used by the implementation.
  • Copied AbstractContractDetails into AionContractDetailsImpl. Removed inheritance from AbstractContractDetails and deleted the abstract class.
  • Updated method for making deleted contracts.
  • Removed getCode method from ContractDetails interface (implementation detail).

Type of change

Insert x into the following checkboxes to confirm (eg. [x]):

  • Bug fix.
  • New feature.
  • Enhancement.
  • Unit test.
  • Breaking change (a fix or feature that causes existing functionality to not work as expected).
  • Requires documentation update.

@AlexandraRoatis AlexandraRoatis added the enhancement New feature or request label Oct 17, 2019
@AlexandraRoatis AlexandraRoatis added this to the 0.5.0 (Unity) milestone Oct 17, 2019
@AlexandraRoatis AlexandraRoatis self-assigned this Oct 17, 2019
@AlexandraRoatis AlexandraRoatis force-pushed the AKI-435 branch 2 times, most recently from 79b46dc to 70c8e20 Compare October 21, 2019 14:21
 - the method was used only for testing, so it was moved to the test class.
 - removed inheritance from AbstractContractDetails and instance variables
 that were not used by the implementation.
 - removed inheritance from AbstractContractDetails;
 - deleted abstract class.
 - correctly retrieving the code based on its hash in tests;
 - updated toString methods to print all stored codes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant