Skip to content

Commit

Permalink
Complete and enhance Poseidon builtin implementation (keep-starknet-s…
Browse files Browse the repository at this point in the history
…trange#382)

* add generic method calls for BuiltinRunner

* Complete and enhance Poseidon builtin implementation

---------

Co-authored-by: lanaivina <[email protected]>
  • Loading branch information
tcoratger and lana-shanghai authored Feb 19, 2024
1 parent 6400931 commit c33c48b
Show file tree
Hide file tree
Showing 2 changed files with 304 additions and 168 deletions.
1 change: 1 addition & 0 deletions src/vm/builtins/builtin_runner/builtin_runner.zig
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ pub const BuiltinRunner = union(BuiltinName) {
/// The total number of used instances as a `usize`, or an error if calculation fails.
pub fn getUsedInstances(self: *Self, segments: *MemorySegmentManager) !usize {
return switch (self.*) {
.SegmentArena => 0,
inline else => |*builtin| try builtin.getUsedInstances(segments),
};
}
Expand Down
Loading

0 comments on commit c33c48b

Please sign in to comment.