-
Notifications
You must be signed in to change notification settings - Fork 178
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
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @fcarreiro and the rest of your teammates on Graphite |
There was a problem hiding this 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
// 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 |
There was a problem hiding this comment.
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?
11f5fdf
to
1d121bc
Compare
Merge activity
|
a896dc5
to
8725339
Compare
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 likeget_env_var(12)
you would get a memory address with the 12 in it; and not the12
constant.