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

EVM: Refactor FVM precompiles #1047

Merged
merged 8 commits into from
Jan 14, 2023
Merged

EVM: Refactor FVM precompiles #1047

merged 8 commits into from
Jan 14, 2023

Conversation

Stebalien
Copy link
Member

  1. Remove the length from resolve_address (just take bytes).
  2. Fix call_actor to follow the solidity conventions with respect to offsets and lengths.
  3. Add a new call_actor_id that takes an ID instead of an address.

@Stebalien Stebalien requested a review from mriise January 13, 2023 23:40
@Stebalien
Copy link
Member Author

This will need tests & test fixes.

1. Remove the `length` from `resolve_address` (just take bytes).
2. Fix `call_actor` to follow the solidity conventions with respect to
offsets and lengths.
3. Add a new `call_actor_id` that takes an ID instead of an address.
Copy link
Contributor

@mriise mriise left a comment

Choose a reason for hiding this comment

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

LGTM but needs more tests (which will be written soon ig actually) I should read more

actors/evm/src/interpreter/precompiles/fvm.rs Outdated Show resolved Hide resolved
@mriise
Copy link
Contributor

mriise commented Jan 14, 2023

@Stebalien line 15 /// Returns nothing inputs >2^65 should be 64 bits

actors/evm/tests/call.rs Show resolved Hide resolved
actors/evm/tests/precompile.rs Show resolved Hide resolved
@Stebalien Stebalien merged commit 4369a8a into next Jan 14, 2023
@Stebalien Stebalien deleted the refactor/precompile-api branch January 14, 2023 03:24
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.

2 participants