Make Address::get_payload_bytes public
This commit is contained in:
parent
e47d89c537
commit
525ea00e0f
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue