Skip to content

Commit

Permalink
fix: recovery code parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
sherpalden committed Nov 11, 2024
1 parent 788df3e commit 7abd8f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/cosmwasm-vm/cw-cluster-connection/src/helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ impl<'a> ClusterConnection<'a> {
if signature.len() != 65 {
return Err(ContractError::InvalidSignature);
}
let mut recovery_code = 0;
if signature[0] == 28 {
recovery_code = 1
let mut recovery_code = signature[0];
if recovery_code >= 27 {
recovery_code = recovery_code - 27;
}
match deps
.api
Expand Down

0 comments on commit 7abd8f9

Please sign in to comment.