Skip to content

Commit

Permalink
add example enum to plugin_test_data
Browse files Browse the repository at this point in the history
  • Loading branch information
0xicosahedron committed Nov 9, 2023
1 parent 6ac060d commit a94ef41
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/dojo-lang/src/plugin_test_data/print
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ struct Player {
name: felt252,
}

#[derive(Print, Copy, Drop, Serde)]
enum Enemy {
Unknown,
Bot: felt252,
OtherPlayer: ContractAddress,
}

//! > generated_cairo_code
use serde::Serde;

Expand Down

0 comments on commit a94ef41

Please sign in to comment.