Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit c671fdc

Browse files
committed
Update token-swap for token2
1 parent b62c272 commit c671fdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

token-swap/program/src/processor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ impl State {
176176
if *authority_info.key != token_b.owner {
177177
return Err(Error::InvalidOwner.into());
178178
}
179-
if spl_token::option::COption::Some(*authority_info.key) != pool_mint.owner {
179+
if spl_token::option::COption::Some(*authority_info.key) != pool_mint.mint_authority {
180180
return Err(Error::InvalidOwner.into());
181181
}
182182
if token_b.amount == 0 {

0 commit comments

Comments
 (0)