Skip to content

Commit 5772bd0

Browse files
committed
Update LastApprove to have an Option<NewState>
1 parent f7f0c84 commit 5772bd0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

primitives/src/sentry.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ use std::collections::HashMap;
77
#[derive(Serialize, Deserialize, Debug)]
88
#[serde(rename_all = "camelCase")]
99
pub struct LastApproved {
10-
pub new_state: NewState,
11-
/// ApproveState can be None if the channel is brand new and we have only NewState atm
10+
/// NewState can be None if the channel is brand new
11+
pub new_state: Option<NewState>,
12+
/// ApproveState can be None if the channel is brand new
1213
pub approved_state: Option<ApproveState>,
1314
}
1415

0 commit comments

Comments
 (0)