build(deps): update minicbor requirement from 0.17 to 0.18 (#134)
* build(deps): update minicbor requirement from 0.17 to 0.18 Updates the requirements on [minicbor](https://gitlab.com/twittner/minicbor) to permit the latest version. - [Release notes](https://gitlab.com/twittner/minicbor/tags) - [Changelog](https://gitlab.com/twittner/minicbor/blob/develop/CHANGELOG.md) - [Commits](https://gitlab.com/twittner/minicbor/compare/minicbor-v0.17.0...minicbor-v0.18.0) --- updated-dependencies: - dependency-name: minicbor dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * Fix build errors Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Santiago Carmuega <santiago@carmuega.me>
This commit is contained in:
parent
8931f82f25
commit
9100884270
3 changed files with 11 additions and 9 deletions
|
|
@ -101,11 +101,12 @@ impl<'b> MultiEraOutput<'b> {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn encode(&self) -> Result<Vec<u8>, minicbor::encode::Error<std::io::Error>> {
|
||||
pub fn encode(&self) -> Vec<u8> {
|
||||
// to_vec is infallible
|
||||
match self {
|
||||
Self::AlonzoCompatible(x) => minicbor::to_vec(x),
|
||||
Self::Babbage(x) => minicbor::to_vec(x),
|
||||
Self::Byron(x) => minicbor::to_vec(x),
|
||||
Self::AlonzoCompatible(x) => minicbor::to_vec(x).unwrap(),
|
||||
Self::Babbage(x) => minicbor::to_vec(x).unwrap(),
|
||||
Self::Byron(x) => minicbor::to_vec(x).unwrap(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -24,11 +24,12 @@ impl<'b> MultiEraTx<'b> {
|
|||
Self::Babbage(Box::new(Cow::Borrowed(tx)))
|
||||
}
|
||||
|
||||
pub fn encode(&self) -> Result<Vec<u8>, minicbor::encode::Error<std::io::Error>> {
|
||||
pub fn encode(&self) -> Vec<u8> {
|
||||
// to_vec is infallible
|
||||
match self {
|
||||
MultiEraTx::AlonzoCompatible(x, _) => minicbor::to_vec(x),
|
||||
MultiEraTx::Babbage(x) => minicbor::to_vec(x),
|
||||
MultiEraTx::Byron(x) => minicbor::to_vec(x),
|
||||
MultiEraTx::AlonzoCompatible(x, _) => minicbor::to_vec(x).unwrap(),
|
||||
MultiEraTx::Babbage(x) => minicbor::to_vec(x).unwrap(),
|
||||
MultiEraTx::Byron(x) => minicbor::to_vec(x).unwrap(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue