From c671fdcd3aa56ff449f16da8e9ba1cff0272f6e6 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Wed, 26 Aug 2020 22:37:50 -0700 Subject: [PATCH] Update token-swap for token2 --- token-swap/program/src/processor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/token-swap/program/src/processor.rs b/token-swap/program/src/processor.rs index 16f4cb35..0f0153f1 100644 --- a/token-swap/program/src/processor.rs +++ b/token-swap/program/src/processor.rs @@ -176,7 +176,7 @@ impl State { if *authority_info.key != token_b.owner { return Err(Error::InvalidOwner.into()); } - if spl_token::option::COption::Some(*authority_info.key) != pool_mint.owner { + if spl_token::option::COption::Some(*authority_info.key) != pool_mint.mint_authority { return Err(Error::InvalidOwner.into()); } if token_b.amount == 0 {