diff --git a/libs/sdk-core/src/greenlight/node_api.rs b/libs/sdk-core/src/greenlight/node_api.rs index 32cf4a156..92efab6cb 100644 --- a/libs/sdk-core/src/greenlight/node_api.rs +++ b/libs/sdk-core/src/greenlight/node_api.rs @@ -2188,7 +2188,6 @@ impl From for Channel { ChannelState::PendingOpen } ChanneldNormal => ChannelState::Opened, - Onchain => ChannelState::Closed, _ => ChannelState::PendingClose, }; @@ -2436,7 +2435,7 @@ mod tests { } let c: models::Channel = cln_channel(&Onchain).into(); - assert_eq!(c.state, models::ChannelState::Closed); + assert_eq!(c.state, models::ChannelState::PendingClose); Ok(()) }