File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
programs/portal/src/instructions Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -161,18 +161,10 @@ impl<'info> TransferBurn<'info> {
161161 return err ! ( ErrorCode :: ConstraintAddress ) ;
162162 }
163163
164- // Owner of the $M token account depends on whether this function
165- // was called directly or by tranfer_extension_burn.
166- let session_owner_seed = if self . common . from . owner . eq ( self . token_authority . key ) {
167- self . common . payer . key ( )
168- } else {
169- self . common . from . owner . key ( )
170- } ;
171-
172164 let ( session_authority, session_authority_bump) = Pubkey :: find_program_address (
173165 & [
174166 crate :: SESSION_AUTHORITY_SEED ,
175- session_owner_seed . as_ref ( ) ,
167+ self . common . from . owner . as_ref ( ) ,
176168 args. keccak256 ( ) . as_ref ( ) ,
177169 ] ,
178170 & crate :: ID ,
@@ -255,7 +247,7 @@ pub fn transfer_burn_common<'info>(
255247 accs. common . mint . decimals ,
256248 & [ & [
257249 crate :: SESSION_AUTHORITY_SEED ,
258- accs. common . payer . key . as_ref ( ) ,
250+ accs. common . from . owner . as_ref ( ) ,
259251 args. keccak256 ( ) . as_ref ( ) ,
260252 & [ session_authority_bump] ,
261253 ] ] ,
You can’t perform that action at this time.
0 commit comments