Skip to content

Commit d82e0b7

Browse files
bitwaltzoedberg
andauthored
Update src/routes.rs
Co-authored-by: Zoe Faltibà <7492268+zoedberg@users.noreply.github.com>
1 parent 7f638ea commit d82e0b7

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/routes.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3045,15 +3045,12 @@ pub(crate) async fn open_channel(
30453045
)));
30463046
}
30473047

3048-
// Validate push_asset_amount
30493048
if let Some(push_asset_amount) = payload.push_asset_amount {
3050-
// push_asset_amount can only be used with RGB channels
30513049
if colored_info.is_none() {
30523050
return Err(APIError::InvalidAmount(s!(
30533051
"push_asset_amount can only be used with RGB channels (asset_id must be specified)"
30543052
)));
30553053
}
3056-
30573054
if let Some((_, asset_amount)) = &colored_info {
30583055
if push_asset_amount > *asset_amount {
30593056
return Err(APIError::InvalidAmount(s!(

0 commit comments

Comments
 (0)