Skip to content

Commit

Permalink
[rooch-networkgh-1552] fix syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
Feliciss committed Apr 18, 2024
1 parent 0d49500 commit 6b859ee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ pub fn native_segwit_encode(

let version = if witness_version == 0 {
VERSION_0 // bech32 -> q
} else if witness_version >= 1 && witness_version <= 16 {
} else if (1..=16).contains(&witness_version) {
VERSION_1 // bech32m -> p (taproot)
} else {
return Ok(NativeResult::err(cost, E_INVALID_WITNESS_VERSION));
Expand Down

0 comments on commit 6b859ee

Please sign in to comment.