Skip to content

Commit f5185d2

Browse files
committed
chore: update planner api for testnet 64
Corresponds to changes in [0], which split up the `build_concurrent` logic. [0] penumbra-zone/penumbra#3289
1 parent fb5d430 commit f5185d2

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/sender.rs

+3-6
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ where
7373
planner
7474
.memo(MemoPlaintext {
7575
text: "Hello from Galileo, the Penumbra faucet bot".to_string(),
76-
sender: self2.fvk.payment_address(0.into()).0,
76+
return_address: self2.fvk.payment_address(0.into()).0,
7777
})
7878
.unwrap();
7979
let plan = planner.plan(&mut self2.view, self2.fvk.wallet_id(), self2.account.into());
@@ -84,20 +84,17 @@ where
8484
.custody
8585
.authorize(AuthorizeRequest {
8686
plan: plan.clone(),
87-
wallet_id: Some(self2.fvk.wallet_id()),
8887
pre_authorizations: Vec::new(),
8988
})
9089
.await?
9190
.data
9291
.ok_or_else(|| anyhow::anyhow!("no auth data"))?
9392
.try_into()?;
9493
let witness_data = self2.view.witness(self2.fvk.wallet_id(), &plan).await?;
95-
let unauth_tx = plan
96-
.build_concurrent(OsRng, &self2.fvk, witness_data)
94+
let tx = plan
95+
.build_concurrent(&self2.fvk, &witness_data, &auth_data)
9796
.await?;
9897

99-
let tx = unauth_tx.authorize(&mut OsRng, &auth_data)?;
100-
10198
// 3. Broadcast the transaction and wait for confirmation.
10299
let (tx_id, _detection_height) = self2.view.broadcast_transaction(tx, true).await?;
103100
Ok(tx_id)

0 commit comments

Comments
 (0)