Skip to content

Commit 6913015

Browse files
committed
fix bug
1 parent d04e6fc commit 6913015

File tree

1 file changed

+1
-1
lines changed
  • programs/drift/src/instructions

1 file changed

+1
-1
lines changed

programs/drift/src/instructions/user.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ pub fn handle_deposit<'c: 'info, 'info>(
653653
} else {
654654
DepositExplanation::None
655655
};
656-
let signer = if ctx.accounts.authority.key() == user.authority {
656+
let signer = if ctx.accounts.authority.key() != user.authority {
657657
Some(ctx.accounts.authority.key())
658658
} else {
659659
None

0 commit comments

Comments
 (0)