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(avm)!: GETENVVAR + ISSTATICCALL #8692

Merged
merged 9 commits into from
Sep 23, 2024
Merged

Conversation

fcarreiro
Copy link
Contributor

@fcarreiro fcarreiro commented Sep 23, 2024

The reason I'm keeping all the oracles on the Noir side, is because I need to pass the enum index as an immediate and Noir doesn't allow that in any other way. That is, if you had an oracle get_env_var(var_idx: u8), when you call it like get_env_var(12) you would get a memory address with the 12 in it; and not the 12 constant.

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @fcarreiro and the rest of your teammates on Graphite Graphite

Copy link
Contributor

@dbanks12 dbanks12 left a comment

Choose a reason for hiding this comment

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

Only comment is about commented out cpp tests

Comment on lines 1796 to 1802
// TEST_F(AvmExecutionTests, l2GasLeft)
// {
// std::string bytecode_hex = to_hex(OpCode::SET_16) + // opcode SET
// "00" // Indirect flag
// + to_hex(AvmMemoryTag::U32) +
// "0101" // val 257
// "0011" // dst_offset 17
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are these commented out?

@fcarreiro fcarreiro force-pushed the fc/avm-getenvvar-opcode branch 2 times, most recently from 11f5fdf to 1d121bc Compare September 23, 2024 13:44
Copy link
Contributor Author

fcarreiro commented Sep 23, 2024

Merge activity

  • Sep 23, 11:48 AM EDT: Graphite disabled "merge when ready" on this PR due to: a merge conflict with the target branch; resolve the conflict and try again..
  • Sep 23, 5:22 PM EDT: @fcarreiro merged this pull request with Graphite.

@fcarreiro fcarreiro merged commit 02cff0b into master Sep 23, 2024
49 checks passed
@fcarreiro fcarreiro deleted the fc/avm-getenvvar-opcode branch September 23, 2024 21:22
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