NEWTON

NEWTON


Popular tags

    Cairo error: Accessing struct/tuple members for r-value structs is not supported yet

    Asked

    5 months ago

    18

    views


    0

    Hello, I am getting the following error in my starknet contract, does anyone know how to resolve it?

    Accessing struct/tuple members for r-value structs is not supported yet.

    This question was originally posted on Triality

      cairocairo-langstarknet

    1 answers

    0

    Is your struct declared with a let? If so, then when you're trying to access it you are accessing the r-value itself. Try to define it like this instead: tempvar my_struct : MyStruct = ...

    This answer was originally posted on Triality

    answered

    6 months ago

    Your answer

    NEWTON

    NEWTON