Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Remove &mut self from StateReader. #1793

Open
marioiordanov opened this issue Apr 17, 2024 · 0 comments
Open

Remove &mut self from StateReader. #1793

marioiordanov opened this issue Apr 17, 2024 · 0 comments

Comments

@marioiordanov
Copy link

In state::state_api::StateReader all methods of the interface require a &mut self. In starknet-devnet-rs when using some method of StateReader we have to pass &mut reference which in some cases result in compilation errors like: cannot borrow as mutable more than once at a time or cannot borrow *self as immutable because it is also borrowed as mutable

gswirski pushed a commit to reilabs/blockifier that referenced this issue Jun 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant