-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: add infrastructure for RPC testing with real VM #2620
base: main
Are you sure you want to change the base?
Conversation
62ea6eb
to
f24fd54
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2620 +/- ##
==========================================
+ Coverage 75.14% 75.49% +0.35%
==========================================
Files 140 142 +2
Lines 16815 17036 +221
==========================================
+ Hits 12635 12862 +227
+ Misses 3347 3333 -14
- Partials 833 841 +8 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
I think this PR represents a good approximation of what we want to do. There are only two things which I think shouldn't go in:
- All contract defintion shouldn't depend on Scarb
- All contracts shouldn't be under the same Scarb project umbrella
Now, other minor thing, every compilation artifact which is not a .json or a .sierra should be deleted, unless they hinder the program.
f24fd54
to
16c8cbc
Compare
6030f2d
to
6a53330
Compare
7493a83
to
5f1a572
Compare
maxAddr, ok := new(big.Int).SetString("0x7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00", 0) | ||
require.True(t, ok) |
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.
Why are you using BigInt
here, can the maximum address be bigger than a felt?
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.
I use it for the Rem
method
1310eb8
to
f79b7ae
Compare
This PR introduces infrastructure for testing RPC endpoints using the real VM instead of mocks.
Cairo
contracts for testing:test_blockchain
for creating a blockchain with predeployed contracts and preset balancesstarknet_estimateFee
using real VM execution