Skip to content

Commit

Permalink
fix: p2pkh_public_key_hash_bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov committed Oct 19, 2023
1 parent c31dd61 commit 2193554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dash/src/blockdata/script/borrowed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ impl Script {
#[inline]
pub fn p2pkh_public_key_hash_bytes(&self) -> Option<&[u8]> {
if self.is_p2pkh() {
Some(&self.0[2..22])
Some(&self.0[3..23])
} else {
None
}
Expand Down

0 comments on commit 2193554

Please sign in to comment.