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

fix: workaround for eth_getCode when token was not yet created #92

Merged
merged 13 commits into from
Oct 31, 2024

Conversation

acuarica
Copy link
Contributor

@acuarica acuarica commented Oct 30, 2024

Description:

This PR provides a workaround for issue hashgraph/hedera-json-rpc-relay#3155 in the JSON-RPC Relay. These changes were implemented in the json-rpc-forwarder.js. Given the logic to get the redirect bytecode (HIP-719) was starting to get used in several places, we refactored it into the getHIP719Code function.

Note that some Foundry tests had to be updated after moving HIP719 bytecode (f8fbf97).

Additionally, some other changes were introduced to avoid introducing technical debt.

  • Use the same ethereum-cryptography package to avoid hoisting it 16b79b8
  • Remove ethers from root because is not needed there 4109b0f
  • Remove unused lock files in workspace packages 3108478
  • Support for returning null in IMirrorNodeClient (null represents error while performing the request) 78cd629
  • Simplify logger type and remove unused pino dependency a74f864

Related issue(s):

Fixes #91.

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@acuarica acuarica linked an issue Oct 30, 2024 that may be closed by this pull request
Signed-off-by: Luis Mastrangelo <[email protected]>
Signed-off-by: Luis Mastrangelo <[email protected]>
@acuarica acuarica marked this pull request as ready for review October 31, 2024 00:01
@acuarica acuarica requested a review from a team as a code owner October 31, 2024 00:01
Copy link
Contributor

@arianejasuwienas arianejasuwienas left a comment

Choose a reason for hiding this comment

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

lgtm

Signed-off-by: Luis Mastrangelo <[email protected]>
@acuarica acuarica merged commit aa049c4 into main Oct 31, 2024
11 checks passed
@acuarica acuarica deleted the 91-workaround-for-eth_getcode branch October 31, 2024 16:20
acuarica added a commit that referenced this pull request Nov 1, 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.

[Hardhat] Workaround for eth_getCode when token was not yet created
3 participants