-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Cairo1] Fix
GasBuiltin
handling (#1789)
* Load initial_gas & account for segment arena pointer * Remove initial_gas arg from create_entry_code * Account for gas builtin when serializing input * Load initial_gas even if no args * Remove debug code * Add test for reported case * remove program added by accident * Improve comment * Add CHANGELOG entry
- Loading branch information
Showing
5 changed files
with
56 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
cairo_programs/cairo-1-programs/serialized_output/with_input/dict_with_input.cairo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
fn main(input:Array<felt252>) -> Array<felt252> { | ||
let _elements: Felt252Dict<Nullable<Span<u8>>> = Default::default(); | ||
input | ||
} |
4 changes: 4 additions & 0 deletions
4
cairo_programs/cairo-1-programs/with_input/dict_with_input.cairo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
fn main(input:Array<felt252>) -> Array<felt252> { | ||
let _elements: Felt252Dict<Nullable<Span<u8>>> = Default::default(); | ||
input | ||
} |