chore: Fix lint warnings (#190)
* apply code formatting * fix clippy warnings
This commit is contained in:
parent
2495903434
commit
6451da1e72
4 changed files with 6 additions and 6 deletions
|
|
@ -143,7 +143,7 @@ impl ShelleyPaymentPart {
|
|||
Self::Script(x) => x.to_vec(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
pub fn to_hex(&self) -> String {
|
||||
let bytes = self.to_vec();
|
||||
hex::encode(bytes)
|
||||
|
|
@ -152,7 +152,7 @@ impl ShelleyPaymentPart {
|
|||
pub fn to_bech32(&self) -> Result<String, Error> {
|
||||
let hrp = match self {
|
||||
Self::Key(_) => "addr_vkh",
|
||||
Self::Script(_) => "addr_shared_vkh"
|
||||
Self::Script(_) => "addr_shared_vkh",
|
||||
};
|
||||
let bytes = self.to_vec();
|
||||
encode_bech32(&bytes, hrp)
|
||||
|
|
@ -205,7 +205,7 @@ impl ShelleyDelegationPart {
|
|||
Self::Null => vec![],
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
pub fn to_hex(&self) -> String {
|
||||
let bytes = self.to_vec();
|
||||
hex::encode(bytes)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue