Closed pefontana closed 3 months ago
Hi, can you please share some more details regarding the issue? I am up for tackling it.
Hi @pefontana. Do you mean adding lines for offset2 similar to the ones below that handle offset1? And if so, should we return with the immediate offset2 value only if offset1 is not immediate or is there an order of precedence? https://github.com/lambdaclass/cairo-vm/blob/ec00e31ec5ed412d520957edef8b3441db82d133/vm/src/hint_processor/hint_processor_utils.rs#L40-L42
Hello, some more context on this issue, the pre-deserailized reference shown on the issue is cast([fp + (-4)] + (-10000)
, so the correct behaviour in this case would be to compute both offsets and add them
We saw a case where the offset2 is an immediate
We should modify the
fn get_integer_from_reference
so it can handle the cases where offset2 is an immediate