Skip to content

Commit

Permalink
Merge branch 'zsa1' into zsa_swap
Browse files Browse the repository at this point in the history
  • Loading branch information
ConstanceBeguier committed Feb 6, 2025
2 parents 93d1ab2 + b62f72a commit e3da0ad
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/issuance_global_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ struct IssueTestNote {
}

impl IssueTestNote {
fn new(asset_desc: &Vec<u8>, amount: u64, is_finalized: bool, first_issuance: bool) -> Self {
fn new(asset_desc: &[u8], amount: u64, is_finalized: bool, first_issuance: bool) -> Self {
Self {
asset_desc: asset_desc.clone(),
asset_desc: asset_desc.to_vec(),
amount,
is_finalized,
first_issuance,
Expand Down Expand Up @@ -147,7 +147,7 @@ fn build_issue_bundle(params: &TestParams, data: &[IssueTestNote]) -> IssueBundl
amount,
is_finalized,
first_issuance,
} in data.into_iter().skip(1).cloned()
} in data.iter().skip(1).cloned()
{
bundle
.add_recipient(
Expand All @@ -165,9 +165,9 @@ fn build_issue_bundle(params: &TestParams, data: &[IssueTestNote]) -> IssueBundl
}

bundle
.update_rho(&first_nullifier)
.update_rho(first_nullifier)
.prepare(sighash)
.sign(&isk)
.sign(isk)
.unwrap()
}

Expand Down

0 comments on commit e3da0ad

Please sign in to comment.