Skip to content

Commit

Permalink
fix: update broadcast_transaction sig (#46)
Browse files Browse the repository at this point in the history
* fix: update broadcast_transaction sig

Corresponds to changes in penumbra-zone/penumbra@6705d93

* lint: remove unused view_file

Refs #44

---------

Co-authored-by: Conor Schaefer <conor@penumbralabs.xyz>
  • Loading branch information
conorsch and conorsch authored May 12, 2023
1 parent de85344 commit 8aa0d34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/opt/serve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ impl Serve {
});
std::fs::create_dir_all(&data_dir).context("can create data dir")?;

let view_file = data_dir.clone().join("pcli-view.sqlite");
let custody_file = data_dir.clone().join("custody.json");

// Build a custody service...
Expand Down
3 changes: 2 additions & 1 deletion src/sender.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ where
let tx = unauth_tx.authorize(&mut OsRng, &auth_data)?;

// 3. Broadcast the transaction and wait for confirmation.
self2.view.broadcast_transaction(tx, true).await
let (tx_id, _detection_height) = self2.view.broadcast_transaction(tx, true).await?;
Ok(tx_id)
}
.boxed()
}
Expand Down

0 comments on commit 8aa0d34

Please sign in to comment.