File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
crates/shielded_token/src Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 11//! MASP native VP
22
3+ use std:: borrow:: Cow ;
34use std:: cmp:: Ordering ;
45use std:: collections:: { BTreeMap , BTreeSet } ;
56use std:: marker:: PhantomData ;
@@ -480,7 +481,7 @@ where
480481 ctx : & ' ctx CTX ,
481482 shielded_tx : & MaspFeeType ,
482483 batched_tx : & BatchedTxRef < ' _ > ,
483- actions_authorizers : & mut HashSet < & Address > ,
484+ actions_authorizers : & mut HashSet < Cow < ' _ , Address > > ,
484485 ) -> Result < ( ) > {
485486 let has_trans_inputs = shielded_tx
486487 . masp_tx ( )
@@ -690,14 +691,17 @@ where
690691 }
691692 }
692693
693- let mut actions_authorizers: HashSet < & Address > = actions
694+ let mut actions_authorizers: HashSet < Cow < ' _ , Address > > = actions
694695 . iter ( )
695696 . filter_map ( |action| {
696697 if let namada_tx:: action:: Action :: Masp (
697698 namada_tx:: action:: MaspAction :: MaspAuthorizer ( addr) ,
698699 ) = action
699700 {
700- Some ( addr)
701+ Some ( Cow :: Borrowed ( addr) )
702+ } else if let namada_tx:: action:: Action :: IbcShielding ( data ) = action
703+ {
704+ data. get_signer ( ) . map ( |s| Cow :: Owned ( Address :: from ( s) ) )
701705 } else {
702706 None
703707 }
You can’t perform that action at this time.
0 commit comments