Skip to content

Conversation

@ntfreem
Copy link
Contributor

@ntfreem ntfreem commented Jan 29, 2020

Added a new function to allow the output of a signed transaction in binary format

@ntfreem ntfreem requested a review from NicolasDP January 29, 2020 19:02
@vincenthz vincenthz merged commit fed3758 into input-output-hk:master Jan 30, 2020
@vincenthz vincenthz removed the request for review from NicolasDP January 30, 2020 04:09
@vincenthz vincenthz added the enhancement New feature or request label Jan 30, 2020
@NicolasDP
Copy link
Contributor

I have reverted that PR. The code obviously does not compile...

}
pub fn to_bytes(&self) -> Result<String, JsValue> {
let bytes = cbor!(&self.0).map_err(|e| JsValue::from_str(&format! {"{:?}", e}))?;
Ok(bytes)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error:

error[E0308]: mismatched types
   --> src/lib.rs:926:12
    |
926 |         Ok(bytes)
    |            ^^^^^ expected struct `std::string::String`, found struct `std::vec::Vec`
    |
    = note: expected type `std::string::String`
               found type `std::vec::Vec<u8>`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants