From 525ea00e0fad53e42e918819cb71f42c222a7f89 Mon Sep 17 00:00:00 2001 From: Fredrik Meringdal Date: Fri, 29 Apr 2022 11:54:53 +0200 Subject: [PATCH] Make Address::get_payload_bytes public --- src/util/address.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/address.rs b/src/util/address.rs index 982ae118..4ddfcf83 100644 --- a/src/util/address.rs +++ b/src/util/address.rs @@ -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,