-
Notifications
You must be signed in to change notification settings - Fork 198
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 for multiple writes/reads to the same storage slot #1559
Comments
hey, I'm down to try to work on this |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedI can leverage my deep technical understanding and problem-solving expertise to assist in modifying contract storage mappings, developing rigorous test cases, and ensuring efficient debugging for the task at hand. How I plan on tackling this issueI would approach the problem by modifying the storage_view mapping, deploying the test contracts with shared keys, and writing a test to verify that the storage isolation is correctly enforced. |
The maintainer Arcticae has assigned moteeullahazmi to this issue via OnlyDust Platform. |
I am applying to this issue via OnlyDust platform. Hey! I'm a full stack developer with several years web3 experience but fairly new to the Starknet ecosystem. Would love to take this on if its available! I plan to check out the issue and write some tests that are failing at first to ensure the problem is found, and then ensuring all cases are covered. |
I'd like to handle this task. |
I am applying to this issue via OnlyDust platform. My background and how it can be leveraged How I plan on tackling this issue |
@hannahredler unassigning due to inactivity |
Can I be assigned to this? |
@OWK50GA are you still interested in tackling this one? |
Can I contribute to this one? |
May I try my hand at this? |
Hey, this issue will be available for taking during the ODBoost https://app.onlydust.com/hackathons/odboost-1. |
Hi, I am a beginner Cairo developer from Paris. |
Hi! Thanks for trusting me, I've started work! I ran into a lack of performance on my pc during the build phase of the project locally, but I solved it with a vps. Today I'll create a draft so you can see the progress. |
Which components does the task require to be changed? (think hard pls)
snforge
Description
We should ensure (in the tests) that multiple writes/reads across multiple contracts in the tests is not possible
Step 1
starknet-foundry/crates/runtime/src/starknet/state.rs
Line 14 in 8ce451e
should be modified (in order to ensure that this test fail before that):
storage_view
field is a mapping from a pair(contract_address, key)
to afelt
, modify it to map onlykey
tofelt
(don't commit!)Step 2
Deploy following contracts in the tests (these can be contained in the same class hash, just 2 different deployments):
Step 3
Write a following test:
Context
This surfaced as we tried to perform step 1, and the CI did not fail in the process
The text was updated successfully, but these errors were encountered: