You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the simple contract example blow, line 11 leads to a MemoryWriteOverlap revert.
contract;
abi MyContract {
fn test();
}
impl MyContract for Contract {
fn test() {
let mut latest_random_seed = 1;
// Error line 11. Assigning a different value works as expected
latest_random_seed = latest_random_seed;
}
}
as written in the comment if we assign a value example: latest_random_seed = 42; the contract method will not panic.
IGI-111
added
compiler
General compiler. Should eventually become more specific as the issue is triaged
and removed
triage
This issue was opened with a template and needs to be triaged by code owners.
labels
Aug 6, 2024
Related Component
compiler
Problem
In the simple contract example blow, line 11 leads to a
MemoryWriteOverlap
revert.as written in the comment if we assign a value example: latest_random_seed = 42; the contract method will not panic.
Steps
forc build
cargo test
Possible Solution(s)
No response
Notes
No response
Installed components
forc - 0.62.0
The text was updated successfully, but these errors were encountered: