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

Precompile refactor and signEthTx precompile #79

Closed
wants to merge 1 commit into from

Conversation

Ruteri
Copy link
Collaborator

@Ruteri Ruteri commented Oct 27, 2023

📝 Summary

  • Refactors how precompiles are structured
  • Adds new signEthTransaction precompile

📚 References


  • I have seen and agree to CONTRIBUTING.md

// Should be proportional to bundle gas limit
return 10000
}
chainIdInt, err := hexutil.DecodeBig(chainId)
Copy link
Member

Choose a reason for hiding this comment

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

should this be fully generic or only support specific chainIDs for now? just so people dont shoot themselves in the foot since we only support eth L1 rn

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

🤷

@@ -316,7 +316,7 @@ func parsePositionalArguments(rawArgs json.RawMessage, types []reflect.Type) ([]
// Set any missing args to nil.
for i := len(args); i < len(types); i++ {
if types[i].Kind() != reflect.Ptr {
return nil, fmt.Errorf("missing value for required argument %d", i)
return nil, fmt.Errorf("missing value for required argument %d: %s", i, string(rawArgs))
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

debug, will remove

@Ruteri
Copy link
Collaborator Author

Ruteri commented Oct 27, 2023

Precompile merged in #81
Refactor moved to Precompile merged in #82

@Ruteri Ruteri closed this Oct 27, 2023
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