Skip to content

Commit 4dce111

Browse files
committed
Make Address::get_payload_bytes public
1 parent 5fceff6 commit 4dce111

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/address.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ impl Address {
738738
}
739739

740740
/// Return the address payload as a byte slice
741-
fn payload_as_bytes(&self) -> &[u8] {
741+
pub fn payload_as_bytes(&self) -> &[u8] {
742742
match &self.payload {
743743
Payload::ScriptHash(hash) => hash,
744744
Payload::PubkeyHash(hash) => hash,

0 commit comments

Comments
 (0)