mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-12 05:59:23 +00:00
fmt & clippy :)
This commit is contained in:
@@ -258,14 +258,16 @@ impl Transaction {
|
||||
};
|
||||
|
||||
if prefix.version == 1 {
|
||||
|
||||
signatures = prefix
|
||||
.inputs
|
||||
.iter()
|
||||
.filter_map(|input| match input {
|
||||
Input::ToKey { key_offsets, .. } => {
|
||||
Some(key_offsets.iter().map(|_| Ok((read_scalar(r)?, read_scalar(r)?))).collect::<Result<_, io::Error>>())
|
||||
}
|
||||
Input::ToKey { key_offsets, .. } => Some(
|
||||
key_offsets
|
||||
.iter()
|
||||
.map(|_| Ok((read_scalar(r)?, read_scalar(r)?)))
|
||||
.collect::<Result<_, io::Error>>(),
|
||||
),
|
||||
_ => None,
|
||||
})
|
||||
.collect::<Result<_, _>>()?;
|
||||
|
||||
Reference in New Issue
Block a user