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: Convert CALLACTOR into a precompile #1066

Closed
Stebalien opened this issue Nov 9, 2022 · 0 comments
Closed

EVM: Convert CALLACTOR into a precompile #1066

Stebalien opened this issue Nov 9, 2022 · 0 comments
Assignees
Labels
P1 P1: Must be resolved Topic: EVM runtime

Comments

@Stebalien
Copy link
Member

It's really annoying to call arbitrary assembly from solidity. We should define a new precompile that takes:

  1. An actor address.
  2. A method number.
  3. A codec number.
  4. Parameter bytes.

It'll re-use the value and gas limit from the precompile call itself.

This precompile returns a struct with the following fields:

  1. The exit code (non-negative) or error number (negative).
  2. The return codec or 0 if there isn't a return value.
  3. The return value bytes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 P1: Must be resolved Topic: EVM runtime
Projects
None yet
Development

No branches or pull requests

2 participants