-
Notifications
You must be signed in to change notification settings - Fork 53
Conversation
Codecov Report
@@ Coverage Diff @@
## main #205 +/- ##
==========================================
- Coverage 73.47% 70.93% -2.54%
==========================================
Files 39 40 +1
Lines 2601 2694 +93
==========================================
Hits 1911 1911
- Misses 690 783 +93
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
- don't use test harness
static ref CONTRACT_CLASS: ContractClass = ContractClass::try_from(PathBuf::from( | ||
"starknet_programs/account_without_validation.json", | ||
)) | ||
.unwrap(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any way to build the ContractClass
from bytes? In that case you could use include_bytes!
instead of creating a path that needs to be read from.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The GH workflow that runs clippy doesn't install deps and so cannot compile the cairo programs. I'll revert this change.
To do so, had to add compile-starknet to Makefile target dependencies.
This reverts commit 10f9c96.
* Add flamegraph target to Makefile * Add dependency to target * Fix: activate venv before compiling contracts * Rename benches * Add declare test - don't use test harness * Clone elements outside `scope` * Appease clippy * Add deploy test * Reduce run count * Fix: invert guard in `handle_empty_constructor` * Use correct class_hash in test * Add invoke flamegraph * Pin cargo-flamegraph version * Add instructions to README * Remove unnecessary clone * Add ContractClass with include_str! To do so, had to add compile-starknet to Makefile target dependencies. * Revert "Add ContractClass with include_str!" This reverts commit 10f9c96.
This PR adds a Makefile target that runs a copy of
tests/deploy_account.rs
with some differences to allow for better flamegraph visualization.Note: also inverts the guard-check in this method of
InternalDeploy
.