Skip to content

Commit 18c4e13

Browse files
abelmarnkfebo
andauthored
Remove CPI-guard delegate allowance check
Co-authored-by: Fernando Otero <[email protected]>
1 parent 93c42fe commit 18c4e13

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

program/src/processor.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1682,8 +1682,7 @@ impl Processor {
16821682

16831683
let self_transfer = source_account_info.key == destination_account_info.key;
16841684
if let Ok(cpi_guard) = source_account.get_extension::<CpiGuard>() {
1685-
if *authority_info.key == source_account.base.owner
1686-
&& cpi_guard.lock_cpi.into()
1685+
if cpi_guard.lock_cpi.into()
16871686
&& in_cpi()
16881687
{
16891688
return Err(TokenError::CpiGuardTransferBlocked.into());

0 commit comments

Comments
 (0)