Skip to content

Commit 68411e7

Browse files
Add test demonstrating issue with using Option inside an enum
1 parent 9604623 commit 68411e7

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

soroban-sdk/src/tests.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ mod contract_snapshot;
1717
mod contract_store;
1818
mod contract_timepoint;
1919
mod contract_udt_enum;
20+
mod contract_udt_enum_option;
2021
mod contract_udt_option;
2122
mod contract_udt_struct;
2223
mod contract_udt_struct_tuple;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
use crate::{self as soroban_sdk};
2+
use soroban_sdk::{contracttype, Address};
3+
4+
#[contracttype]
5+
#[derive(Clone, Debug, Eq, PartialEq)]
6+
pub enum Test {
7+
Variant(Option<Address>, Address, i128),
8+
}

0 commit comments

Comments
 (0)