mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-13 23:16:52 +00:00
admin
This commit is contained in:
@@ -12,7 +12,7 @@ pub fn process_bury(accounts: &[AccountInfo<'_>], _data: &[u8]) -> ProgramResult
|
||||
else {
|
||||
return Err(ProgramError::NotEnoughAccountKeys);
|
||||
};
|
||||
signer_info.is_signer()?; // .has_address(&ADMIN_ADDRESS)?;
|
||||
signer_info.is_signer()?.has_address(&ADMIN_ADDRESS)?;
|
||||
block_info.as_account::<Block>(&ore_api::ID)?;
|
||||
let block_bets = block_bets_info
|
||||
.is_writable()?
|
||||
|
||||
@@ -9,7 +9,7 @@ pub fn process_initialize(accounts: &[AccountInfo<'_>], _data: &[u8]) -> Program
|
||||
else {
|
||||
return Err(ProgramError::NotEnoughAccountKeys);
|
||||
};
|
||||
signer_info.is_signer()?; // .has_address(&ADMIN_ADDRESS)?;
|
||||
signer_info.is_signer()?.has_address(&ADMIN_ADDRESS)?;
|
||||
block_info
|
||||
.is_empty()?
|
||||
.is_writable()?
|
||||
|
||||
Reference in New Issue
Block a user