2

Is there a data type similar to "object" in C# that any solidity data type could rely on? I currently have a struct with multiple fields and I would need one of them to be either a string, a boolean,... depending on the situation. Is there a "clean" way to do that?

1
  • 1
    No, currently there's no such type.
    – Ismael
    May 23 at 6:31
0

Indeed, unfortunately there is not such a type in solidity....

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.