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

feat: cairo precompiles #1149

Merged
merged 15 commits into from
May 29, 2024
Merged

feat: cairo precompiles #1149

merged 15 commits into from
May 29, 2024

Conversation

enitrat
Copy link
Collaborator

@enitrat enitrat commented May 21, 2024

Time spent on this PR:

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Resolves #

What is the new behavior?


This change is Reviewable

@enitrat enitrat force-pushed the feat/cairo-precompiles branch 3 times, most recently from d0696fe to 1b2fe5e Compare May 27, 2024 16:47
@enitrat enitrat changed the title (wip) feat: cairo precompiles feat: cairo precompiles May 28, 2024
@enitrat enitrat marked this pull request as ready for review May 28, 2024 10:33
(bool success, bytes memory result) = CAIRO_PRECOMPILE_ADDRESS.call(callData);
require(success, "CairoLib: call_contract failed");

returnData = result;
Copy link
Member

Choose a reason for hiding this comment

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

if you name the returned value, you can skip this and use the same name directly. I my self prefer not to name it and use the return statement, more explicit imo

@enitrat enitrat merged commit 2e1eff8 into main May 29, 2024
7 checks passed
@enitrat enitrat deleted the feat/cairo-precompiles branch May 29, 2024 14:17
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.

None yet

2 participants