Closed temyurchenko closed 1 year ago
I see two warnings of this kind: https://typescript-eslint.io/rules/no-non-null-assertion/.
The non-null-check operator "!" is used in two, seemingly to me, perfectly reasonable places. It is basically equivalent to saying «the max int type is 256 bytes wide». Furthermore, I can see this operator being useful in other static contexts, like accessing elements of a static array. It might be reasonable to remove this option from eslint, and check validity of using such an operator on a case-by-case basis.
Instead of generating Cairo functions, we use generic capabilities of Cairo 1 to write a single static function in warplib.
Additionally we remove some usages of old functions, but not all of them, since they are tied to much into some subsystems, like calldata and storage. This will be finished in future work.