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

bug: Using u256 bitwise and fails to compile to CASM #2933

Closed
wraitii opened this issue Apr 25, 2023 · 0 comments · Fixed by #2935
Closed

bug: Using u256 bitwise and fails to compile to CASM #2933

wraitii opened this issue Apr 25, 2023 · 0 comments · Fixed by #2935
Labels
bug Something isn't working

Comments

@wraitii
Copy link
Contributor

wraitii commented Apr 25, 2023

Bug Report

Cairo version:

Alpha 7

Current behavior:

Compiling the following code with starknet-compile works, but compiling that with starknet-sierra-compile fails with:

Error: Compilation failed.

Caused by:
    [13] is not a supported builtin type.

Expected behavior:

This should compile.

Steps to reproduce:

The following is a minimal reproduction that exhibits this behaviour.

mod BuggedCode {
    use traits::Into;

    #[external]
    fn test_bitwise(input: u256) {
        input & 35425.into();
    }
}

You need to compile it down to CASM using either Scarb or starknet-sierra-compile.

@wraitii wraitii added the bug Something isn't working label Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant