Skip to content

Commit

Permalink
Add first_issuance parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeykoren committed Dec 20, 2024
1 parent 767b0a1 commit f056db0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
20 changes: 10 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/commands/test_orchard_zsa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl Runnable for TestOrchardZSACmd {
// --------------------- Issue asset ---------------------

let issue_tx =
create_issue_transaction(issuer, 1000, asset_description.clone(), &mut wallet);
create_issue_transaction(issuer, 1000, asset_description.clone(), true, &mut wallet);

let asset = issue_tx
.issue_bundle()
Expand Down
2 changes: 2 additions & 0 deletions src/components/transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ pub fn create_issue_transaction(
recipient: Address,
amount: u64,
asset_desc: Vec<u8>,
first_issuance: bool,
wallet: &mut User,
) -> Transaction {
info!("Issue {} asset", amount);
Expand All @@ -278,6 +279,7 @@ pub fn create_issue_transaction(
recipient,
value: NoteValue::from_raw(amount),
}),
first_issuance,
)
.unwrap();
build_tx(tx)
Expand Down

0 comments on commit f056db0

Please sign in to comment.