Skip to content

refactor(l2): Remove redundant address derivation function in load_test #2494

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 12 commits into from
May 14, 2025

Conversation

GarmashAlex
Copy link
Contributor

Motivation

This pull request addresses a TODO comment in the load_test code that suggested moving the custom address derivation function to common utilities. Instead of duplicating functionality, we should leverage existing code from the SDK to improve maintainability and consistency across the codebase.

Description

This PR removes a redundant implementation of Ethereum address derivation in the load_test tool by replacing it with the existing get_address_from_secret_key function from the L2 SDK. The changes include:

  • Removed the custom address_from_pub_key function that was marked with a TODO comment
  • Added an import for get_address_from_secret_key from ethrex_l2_sdk
  • Updated all usages throughout the code to use the SDK function instead
  • Added proper error handling for the SDK function calls

@GarmashAlex GarmashAlex requested a review from a team as a code owner April 17, 2025 18:24
@mpaulucci
Copy link
Collaborator

please fix ci

@GarmashAlex GarmashAlex changed the title Remove redundant address derivation function in load_test refactor: Remove redundant address derivation function in load_test Apr 23, 2025
@GarmashAlex GarmashAlex changed the title refactor: Remove redundant address derivation function in load_test refactor(l2): Remove redundant address derivation function in load_test Apr 23, 2025
Co-authored-by: Tomás Paradelo <112426153+tomip01@users.noreply.github.com>
@GarmashAlex
Copy link
Contributor Author

@tomip01 corrected

@GarmashAlex
Copy link
Contributor Author

@mpaulucci Everyting is fixed, i ran tests and now it must be okay, sorry for late review

@GarmashAlex
Copy link
Contributor Author

@avilagaston9 corrected

@GarmashAlex GarmashAlex requested a review from avilagaston9 May 13, 2025 16:11
Copy link
Collaborator

@Arkenan Arkenan left a comment

Choose a reason for hiding this comment

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

LGTM

@jrchatruc jrchatruc added this pull request to the merge queue May 14, 2025
Merged via the queue into lambdaclass:main with commit 3b6efc8 May 14, 2025
19 checks passed
fmoletta pushed a commit that referenced this pull request May 15, 2025
…st (#2494)

**Motivation**

This pull request addresses a TODO comment in the load_test code that
suggested moving the custom address derivation function to common
utilities. Instead of duplicating functionality, we should leverage
existing code from the SDK to improve maintainability and consistency
across the codebase.

**Description**

This PR removes a redundant implementation of Ethereum address
derivation in the load_test tool by replacing it with the existing
get_address_from_secret_key function from the L2 SDK. The changes
include:
- Removed the custom address_from_pub_key function that was marked with
a TODO comment
- Added an import for get_address_from_secret_key from ethrex_l2_sdk
- Updated all usages throughout the code to use the SDK function instead
- Added proper error handling for the SDK function calls

---------

Co-authored-by: Tomás Paradelo <112426153+tomip01@users.noreply.github.com>
Co-authored-by: Martin Paulucci <martin.c.paulucci@gmail.com>
Co-authored-by: Tomás Arjovsky <tomas.arjovsky@lambdaclass.com>
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.

6 participants