diff --git a/cardano-wallet/src/lib.rs b/cardano-wallet/src/lib.rs index 1863002..3c298f6 100755 --- a/cardano-wallet/src/lib.rs +++ b/cardano-wallet/src/lib.rs @@ -921,6 +921,10 @@ impl SignedTransaction { let bytes = cbor!(&self.0).map_err(|e| JsValue::from_str(&format! {"{:?}", e}))?; Ok(util::hex::encode(&bytes)) } + pub fn to_bytes(&self) -> Result { + let bytes = cbor!(&self.0).map_err(|e| JsValue::from_str(&format! {"{:?}", e}))?; + Ok(bytes) + } } /// This is the linear fee algorithm used buy the current cardano blockchain.