Skip to content

Commit

Permalink
fix legacy tests (modified by accident in previous commit)
Browse files Browse the repository at this point in the history
  • Loading branch information
rooooooooob committed Oct 16, 2023
1 parent 3bfe2f9 commit 9db7b4f
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions rust/src/address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,17 +456,6 @@ impl Address {
})().map_err(|e| e.annotate("Address"))
}

fn to_hex(&self) -> String {
hex::encode(self.to_bytes())
}

fn from_hex(hex: &str) -> Result<Self, DeserializeError> {
hex::decode(hex)
.map_err(|e| DeserializeFailure::InvalidStructure(Box::new(e)).into())
.and_then(Self::from_bytes)

}

pub fn to_bech32(&self, prefix: Option<String>) -> Result<String, JsError> {
let final_prefix = match prefix {
Some(prefix) => prefix,
Expand Down

0 comments on commit 9db7b4f

Please sign in to comment.