NEWTON
Asked
4 months ago
18
views
0
Hi, I'm using pytest for testing cairo contract. I found that a simple starknet setup and initial call for contract cost 34 seconds. Is there a way to accelerate test?
upd: yes, this works. but I found that compiling contract cost 7s and deploying contract cost 25s. These two operations are the most time-consuming
Newton
asked
4 months ago
0
you can reduce it a bit per test by batching tests together and creating fixtures that have scope for the whole session or module of tests like this https://github.com/0xtonysprocket/fixed_point/blob/main/tests/conftest.py
answered
4 months ago
How can I verify a contract on starkscan or voyager after deploying the contract
Testing Starknet Cairo contract function with address
How to submit a StarkNet contract?
How to setup local Starknet node with Account contracts?
Is there a threshold of optimum transaction speed/cost in L2s?
Trying to deploy contract with Argent guide but got error Unitialized Contract
Is there a threshold of optimum transaction speed/cost in L2s?
What libraries are secure to use in Cairo?
What’s the difference between Account Abstraction (AA) and Externally Owned Accounts (EOA)?
Namespaces in Cairo
How to make recursive function in Cairo Lang?
Is there a way to accelerate pytest for cairo contract?
StarknetErrorCode.DEPRECATED_TRANSACTION while deploying StarkNet contract
How does Argent X wallet estimate fees in Starknet before sending a tx?