Closed jayz22 closed 2 months ago
This reverts commit e43b3dbc463d510cf708b9e72a87794f348170c6.
It only works if the derive attribute comes after the contracttype and is contained in a single list. i.e. below works
derive
contracttype
#[contracttype] #[derive(Clone, Copy, PartialEq, Eq, Debug)] pub enum MyType
but these two don't
#[derive(Clone, Copy, PartialEq, Eq, Debug)] #[contracttype] pub enum MyType
#[contracttype] #[derive(Clone, Copy)] #[derive(PartialEq, Eq, Debug)] pub enum MyType
[TODO or N/A]
What
This reverts commit e43b3dbc463d510cf708b9e72a87794f348170c6.
Why
It only works if the
derive
attribute comes after thecontracttype
and is contained in a single list. i.e. below worksbut these two don't
Known limitations
[TODO or N/A]