Open cicr99 opened 3 weeks ago
Hey @cicr99, can I work on this issue?
Sure @MukulKolpe Pls notice that for this PR, besides creating the requested functions, you'll also need to modify the places in the code where this logic is used and replace it with the functions you created
Sure @cicr99, thank you for the heads-up. I'll make sure to modify all the parts of the code where this logic is used.
@MukulKolpe please wait a bit before working on it so that we can discuss it tomorrow with the team. It seems using generics might be a good idea here as proposed @danielcdz in https://github.com/NethermindEth/cairo-vm-go/issues/347
@TAdev0, Okay, that makes sense. Thanks for informing me. Let me know what the team decides.
@MukulKolpe will make a few tests to see whether using generics decreases efficiency or not , to know if we should them or implementing type by type getVariableAs
functions
Great!
Currently in the scope file, there is a method for getting a variable from the scope directly as a
BigInt
and in PR#361 another is being added foruint64
. It would be nice to have more functionalities like this for other types, specially for the ones that repeat the most such as Element for handling felts