kkrt-labs/cairo-vm-ts

dev: replace the current types by bigint

Closed this issue · 0 comments

We are now using Uint64, Uint32, Int16,... which causes a lot of overhead in order to perform operations on these types, since TS does not allow for operator overload. Replace these types by simple utils which would simply check that the bigint or the number is within the expected range. Each function would check this expected range and return an error if the value is not within range.