lambdaclass / cairo-vm

cairo-vm is a Rust implementation of the Cairo VM. Cairo (CPU Algebraic Intermediate Representation) is a programming language for writing provable programs, where one party can prove to another that a certain computation was executed correctly without the need for this party to re-execute the same program.
https://lambdaclass.github.io/cairo-vm
Apache License 2.0
485 stars 132 forks source link

refactor: remove duplicate function get_val #1800

Open zmalatrax opened 4 days ago

zmalatrax commented 4 days ago

Remove duplicate function get_val from Cairo1HintProcessor

Description

The function get_val is a duplicate of res_operand_get_val, both only used in the Cairo1HintProcessor to fetch values from hint parameters. get_val is only used in the hints u256_inv_mod_n and uint256_div_mod and should be replaced by res_operand_get_val.