Skip to content

Commit 5512697

Browse files
committed
fix sidechain deposit addresses, bump version for release
1 parent d22b4a6 commit 5512697

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Cargo.lock

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ authors = [
1515
edition = "2021"
1616
license-file = "LICENSE.txt"
1717
publish = false
18-
version = "0.10.9"
18+
version = "0.10.10"
1919

2020
[workspace.dependencies.rustreexo]
2121
git = "https://github.com/Ash-L2L/rustreexo.git"

lib/types/address.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ impl Address {
2727

2828
/// Format with `s{sidechain_number}_` prefix and a checksum postfix
2929
pub fn format_for_deposit(&self) -> String {
30-
let prefix = format!("s{}_{}", THIS_SIDECHAIN, self.as_base58());
30+
let prefix = format!("s{}_{}_", THIS_SIDECHAIN, self.as_base58());
3131
let prefix_digest =
3232
sha256::Hash::hash(prefix.as_bytes()).to_byte_array();
33-
format!("{prefix}_{}", hex::encode(&prefix_digest[..6]))
33+
format!("{prefix}_{}", hex::encode(&prefix_digest[..3]))
3434
}
3535
}
3636

0 commit comments

Comments
 (0)