From 946987259a100dbc31c6c58c4b6166df8c22c3a4 Mon Sep 17 00:00:00 2001 From: benthecarman <15256660+benthecarman@users.noreply.github.com> Date: Thu, 25 Sep 2025 22:07:43 -0500 Subject: [PATCH] Change script_buf and address methods to public --- types/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/src/lib.rs b/types/src/lib.rs index 763d6ac2..7f832682 100644 --- a/types/src/lib.rs +++ b/types/src/lib.rs @@ -208,11 +208,11 @@ pub struct ScriptPubkey { } impl ScriptPubkey { - fn script_buf(&self) -> Result { + pub fn script_buf(&self) -> Result { ScriptBuf::from_hex(&self.hex) } - fn address(&self) -> Option, address::ParseError>> { + pub fn address(&self) -> Option, address::ParseError>> { self.address.as_ref().map(|addr| addr.parse::>()) } }