File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 73
73
planner
74
74
. memo ( MemoPlaintext {
75
75
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 ,
77
77
} )
78
78
. unwrap ( ) ;
79
79
let plan = planner. plan ( & mut self2. view , self2. fvk . wallet_id ( ) , self2. account . into ( ) ) ;
@@ -84,20 +84,17 @@ where
84
84
. custody
85
85
. authorize ( AuthorizeRequest {
86
86
plan : plan. clone ( ) ,
87
- wallet_id : Some ( self2. fvk . wallet_id ( ) ) ,
88
87
pre_authorizations : Vec :: new ( ) ,
89
88
} )
90
89
. await ?
91
90
. data
92
91
. ok_or_else ( || anyhow:: anyhow!( "no auth data" ) ) ?
93
92
. try_into ( ) ?;
94
93
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 )
97
96
. await ?;
98
97
99
- let tx = unauth_tx. authorize ( & mut OsRng , & auth_data) ?;
100
-
101
98
// 3. Broadcast the transaction and wait for confirmation.
102
99
let ( tx_id, _detection_height) = self2. view . broadcast_transaction ( tx, true ) . await ?;
103
100
Ok ( tx_id)
You can’t perform that action at this time.
0 commit comments