Skip to content

Instantly share code, notes, and snippets.

@darwinsubramaniam
Created May 18, 2022 14:29
Show Gist options
  • Save darwinsubramaniam/1be489589a3058773ba6108f172553f2 to your computer and use it in GitHub Desktop.
Save darwinsubramaniam/1be489589a3058773ba6108f172553f2 to your computer and use it in GitHub Desktop.
enum in ink!
#[derive(
Debug,
Copy,
Clone,
PartialEq,
Eq,
scale::Encode,
scale::Decode,
ink_storage::traits::SpreadLayout,
ink_storage::traits::PackedLayout,
)]
#[cfg_attr(
feature = "std",
derive(::scale_info::TypeInfo, ::ink_storage::traits::StorageLayout)
)]
pub enum STATE {
STAGING,
PLAYING,
ENDED
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment