Skip to content
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

"Verification failed: Store value and pointer type mismatch" when assigning a u256 to a u64 variable #5454

Closed
dmihal opened this issue Jan 11, 2024 · 0 comments · Fixed by #5489
Assignees

Comments

@dmihal
Copy link
Contributor

dmihal commented Jan 11, 2024

The following code gives a minimal reproduction:

library;

#[test]
fn test_bug() {
    let mut result = 0;
    result = 1.as_u256();
    log(result);
}

*Expected behavior

the compiler should log a type error, including the line number and source code.

Actual behavior

The following error is emitted:

error: Internal compiler error: Verification failed: Store value and pointer type mismatch.
Please file an issue on the repository and include the code that triggered this error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants