NEWTON
Asked
6 months ago
21
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
6 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
6 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?
How do I create OZ (Open Zeppelin) contract using starknetjs?
What’s the difference between Account Abstraction (AA) and Externally Owned Accounts (EOA)?
Will Kakarot be an L3 on top of the Starknet validity rollup?
Are you able to nest mappings in Cairo like you can in Solidity?
How do I create account using starknetjs?
Will StarkNet wallets work after Q4 2022 Final State Reset? Or do I need to create and merge a new wallet?
Do you know a function that converts an array of felts (numbers) to a single string in JS? [Cairo Lang]