chore: Fix linter warnings (#194)
This commit is contained in:
parent
dc41f7b212
commit
d74c49c0c3
1 changed files with 4 additions and 14 deletions
|
|
@ -242,22 +242,12 @@ impl<'b> MultiEraTx<'b> {
|
|||
/// the txouts (Babbage spec, ch 4).
|
||||
pub fn produces(&self) -> Vec<(usize, MultiEraOutput)> {
|
||||
match self.is_valid() {
|
||||
true => {
|
||||
self
|
||||
.outputs()
|
||||
.into_iter()
|
||||
.enumerate()
|
||||
.collect()
|
||||
}
|
||||
false => {
|
||||
self
|
||||
true => self.outputs().into_iter().enumerate().collect(),
|
||||
false => self
|
||||
.collateral_return()
|
||||
.into_iter()
|
||||
.map(|txo| {
|
||||
(self.outputs().len(), txo)
|
||||
})
|
||||
.collect()
|
||||
}
|
||||
.map(|txo| (self.outputs().len(), txo))
|
||||
.collect(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue