NethermindEth / warp

Warp - Bringing Solidity to Starknet at warp speed. Warp is a Solidity to Cairo Compiler, this allows teams to write/migrate Solidity to Cairo for easy onboarding into the StarkNet ecosystem.
https://nethermind.io/warp/
Apache License 2.0
754 stars 70 forks source link

Dependency injection of infer type in Cairo Writer #954

Closed AlejandroLabourdette closed 1 year ago

AlejandroLabourdette commented 1 year ago

Some of the Cairo Writers create a new instance of InferType every time their functions are called, this pr change that to work with a reference passed when Writers were created.