Skip to content

Commit

Permalink
cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mimoo committed Feb 17, 2024
1 parent 704cd13 commit 03c3c66
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/bin/zkbtc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,8 @@ async fn deploy_zkapp(
}

// generate and broadcast deploy transaction
let txid =
generate_and_broadcast_transaction(&rpc_ctx, &vk_hash, initial_state, satoshi_amount)
.await?;
let txid = generate_and_broadcast_transaction(rpc_ctx, &vk_hash, initial_state, satoshi_amount)
.await?;

info!("- txid broadcast to the network: {txid}");
info!("- on an explorer: https://blockstream.info/testnet/tx/{txid}");
Expand Down Expand Up @@ -335,7 +334,7 @@ async fn use_zkapp(

// create bob request
let bob_request = BobRequest::new(
&rpc_ctx,
rpc_ctx,
bob_address,
txid,
&circom_circuit_path,
Expand All @@ -351,13 +350,13 @@ async fn use_zkapp(

// sign it
let (signed_tx_hex, _signed_tx) = sign_transaction(
&rpc_ctx,
rpc_ctx,
TransactionOrHex::Transaction(&bob_response.unlocked_tx),
)
.await?;

// broadcast transaction
let txid = send_raw_transaction(&rpc_ctx, TransactionOrHex::Hex(signed_tx_hex)).await?;
let txid = send_raw_transaction(rpc_ctx, TransactionOrHex::Hex(signed_tx_hex)).await?;

// print useful msg
info!("- txid broadcast to the network: {txid}");
Expand Down

0 comments on commit 03c3c66

Please sign in to comment.