File tree Expand file tree Collapse file tree
program-authority-escrow/src/tests
program-authority-timelock/src/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ impl EscrowSimulator {
214214 . await
215215 . unwrap ( )
216216 . unwrap ( ) ;
217- return ProgramData :: try_deserialize ( & mut account. data . as_slice ( ) ) . unwrap ( ) ;
217+ ProgramData :: try_deserialize ( & mut account. data . as_slice ( ) ) . unwrap ( )
218218 }
219219
220220 pub fn get_escrow_authority (
Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ impl TimelockSimulator {
198198 . await
199199 . unwrap ( )
200200 . unwrap ( ) ;
201- return ProgramData :: try_deserialize ( & mut account. data . as_slice ( ) ) . unwrap ( ) ;
201+ ProgramData :: try_deserialize ( & mut account. data . as_slice ( ) ) . unwrap ( )
202202 }
203203
204204 pub fn get_escrow_authority ( & self , new_authority : & Pubkey , timestamp : i64 ) -> Pubkey {
Original file line number Diff line number Diff line change @@ -17,10 +17,9 @@ impl From<ErrorCode> for TransactionError {
1717 fn from ( val : ErrorCode ) -> Self {
1818 TransactionError :: InstructionError (
1919 0 ,
20- InstructionError :: try_from ( u64:: from ( ProgramError :: from (
20+ InstructionError :: from ( u64:: from ( ProgramError :: from (
2121 anchor_lang:: prelude:: Error :: from ( val) ,
22- ) ) )
23- . unwrap ( ) ,
22+ ) ) ) ,
2423 )
2524 }
2625}
You can’t perform that action at this time.
0 commit comments