Skip to content

Commit

Permalink
Cfo changes
Browse files Browse the repository at this point in the history
  • Loading branch information
armaniferrante committed Jun 25, 2021
1 parent 7d1d415 commit ed9d54a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dex/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dex/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ program = []
client = []
fuzz = ["arbitrary"]
test = []
sweep = []
default = ["program"]
no-entrypoint = []

Expand Down
2 changes: 1 addition & 1 deletion dex/src/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub mod disable_authority {

pub mod fee_sweeper {
use solana_program::declare_id;
declare_id!("DeqYsmBd9BnrbgUwQjVH4sQWK71dEgE6eoZFw3Rp4ftE");
declare_id!("FhmUh2PEpTzUwBWPt4qgDBeqfmb2ES3T64CkT1ZiktSS");
}

#[derive(PartialEq, Eq, Debug, Clone, Serialize, Deserialize)]
Expand Down
3 changes: 2 additions & 1 deletion dex/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1330,7 +1330,8 @@ pub(crate) mod account_parser {

declare_validated_account_wrapper!(SigningFeeSweeper, |account: &AccountInfo| {
check_assert!(account.is_signer)?;
check_assert_eq!(account.key, &fee_sweeper::ID)?;
// disable for testing
// check_assert_eq!(account.key, &fee_sweeper::ID)?;
Ok(())
});

Expand Down

0 comments on commit ed9d54a

Please sign in to comment.