Skip to content

[ICE]: Assigning contract type name to string #1782

@Subway2023

Description

@Subway2023

Version: v0.3.3: v0.3.3-70-g32a45ea1
Description: string public name = type(C).name; triggers a error.

contract C {
    string public name = type(C).name;
}
thread 'main' panicked at 'Found IntValue(IntValue { int_value: Value { name: "", address: 0x5a51040ce190, is_const: true, is_null: false, is_undef: false, llvm_value: "i8 67", llvm_type: "i8" } }) but expected PointerValue variant', /github/home/.cargo/registry/src/index.crates.io-6f17d22bba15001f/inkwell-0.2.0/src/values/enums.rs:302:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions