Make Address::get_payload_bytes public

This commit is contained in:
Fredrik Meringdal 2022-04-29 11:54:53 +02:00
parent e47d89c537
commit 525ea00e0f
1 changed files with 1 additions and 1 deletions

View File

@ -738,7 +738,7 @@ impl Address {
}
/// Return the address payload as a byte slice
fn payload_as_bytes(&self) -> &[u8] {
pub fn payload_as_bytes(&self) -> &[u8] {
match &self.payload {
Payload::ScriptHash(hash) => hash,
Payload::PubkeyHash(hash) => hash,