Skip to content

Commit b25f215

Browse files
committed
only do admin validate when not anchor test
1 parent 7c117c5 commit b25f215

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

programs/drift/src/instructions/admin.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4841,6 +4841,7 @@ pub fn handle_update_mm_oracle(ctx: Context<Empty>, oracle_price: i64) -> Result
48414841

48424842
let signer = &remaining_accounts[1];
48434843

4844+
#[cfg(not(feature = "anchor-test"))]
48444845
validate!(
48454846
*signer.key == admin_hot_wallet::id() && signer.is_signer,
48464847
ErrorCode::DefaultError,

0 commit comments

Comments
 (0)