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

Adding new rsk_getStorageBytesAt JSON-RPC method #2191

Merged
merged 3 commits into from
Jan 12, 2024

Conversation

asoto-iov
Copy link
Contributor

Description

Motivation and Context

How Has This Been Tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • Tests for the changes have been added (for bug fixes / features)
  • Requires Activation Code (Hard Fork)
  • Other information:

Copy link
Contributor

@Vovchyk Vovchyk left a comment

Choose a reason for hiding this comment

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

we'd probably need to disable this method in here, as it might be resource intensive in some cases

@asoto-iov
Copy link
Contributor Author

we'd probably need to disable this method in here, as it might be resource intensive in some cases

sure, I didn't added as I was testing it locally and then I forgot to do it. Thanks for spotting it!

@@ -47,4 +50,7 @@ default void rsk_flush() {
}

RskModule getRskModule();

String rsk_getStorageBytesAt(HexAddressParam address, HexNumberParam storageIdx, BlockRefParam blockRefParam);
Copy link
Contributor

Choose a reason for hiding this comment

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

just to understand, is there a reason why the default keyword isn't declared?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm only declaring the method and in this case, it is not needed to add default implementation.

default methods are used when you want to implement a default method behavior within an interface to not break compatibility with older implementations. It is mainly used in high-exposure interfaces but here it is not needed.

Copy link
Contributor

Choose a reason for hiding this comment

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

great, huge thanks angel.

Copy link

sonarqubecloud bot commented Dec 1, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

80.8% 80.8% Coverage
0.0% 0.0% Duplication

@asoto-iov asoto-iov force-pushed the add_new_rpc_method_rsk_getStorageAt branch from c8bd7fb to 3b88287 Compare January 12, 2024 09:36
Copy link

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

2 New issues
0 Security Hotspots
80.8% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

@Vovchyk Vovchyk merged commit d2d584c into master Jan 12, 2024
10 checks passed
@Vovchyk Vovchyk deleted the add_new_rpc_method_rsk_getStorageAt branch January 12, 2024 11:26
@aeidelman aeidelman added this to the Fingerroot 5.4.0 milestone Jan 30, 2024
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.

4 participants