Skip to content

Commit

Permalink
* test branch without whitelist
Browse files Browse the repository at this point in the history
  • Loading branch information
gigimon committed Oct 26, 2022
1 parent 06b5ba8 commit cde7ed4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions evm_loader/program/src/account/operator.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::error::EvmLoaderError;
// use crate::error::EvmLoaderError;
use solana_program::account_info::AccountInfo;
use solana_program::program_error::ProgramError;
use std::ops::Deref;
Expand All @@ -9,8 +9,8 @@ pub struct Operator<'a> {

impl<'a> Operator<'a> {
pub fn from_account(info: &'a AccountInfo<'a>) -> Result<Self, ProgramError> {
let is_authorized = crate::config::AUTHORIZED_OPERATOR_LIST
.binary_search(info.key).is_ok();
// let is_authorized = crate::config::AUTHORIZED_OPERATOR_LIST
// .binary_search(info.key).is_ok();

// if !is_authorized {
// return Err!(EvmLoaderError::UnauthorizedOperator.into(); "Account {} - expected authorized operator", info.key);
Expand Down

0 comments on commit cde7ed4

Please sign in to comment.