Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
XuyangSong committed Oct 5, 2023
1 parent 8b05247 commit 7a43837
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions taiga_halo2/src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,11 @@ impl rustler::Encoder for Transaction {
transaction().encode(env),
self.shielded_ptx_bundle.encode(env),
borsh::to_vec(&self.transparent_ptx_bundle)
.unwrap_or(vec![])
.unwrap_or_default()
.encode(env),
borsh::to_vec(&self.signature)
.unwrap_or_default()
.encode(env),
borsh::to_vec(&self.signature).unwrap_or(vec![]).encode(env),
)
.encode(env)
}
Expand Down

0 comments on commit 7a43837

Please sign in to comment.