Skip to content

Commit 93352ca

Browse files
committed
Rename
1 parent 8ff86c7 commit 93352ca

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

program/rust/src/deserialize.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ pub fn check_owned_and_rent_exempt_account<T: PythAccount>(
8383
// Check owner
8484
pyth_assert(
8585
account.owner == program_id,
86-
OracleError::AccountNotOwnerByOracle.into(),
86+
OracleError::AccountNotOwnedByOracle.into(),
8787
)?;
8888
Ok(())
8989
}

program/rust/src/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ pub enum OracleError {
3434
InstructionDataSliceMisaligned = 611,
3535
#[error("SmallSizeOrNotEnoughRent")]
3636
SmallSizeOrNotEnoughRent = 612,
37-
#[error("AccountNotOwnerByOracle")]
38-
AccountNotOwnerByOracle = 613,
37+
#[error("AccountNotOwnedByOracle")]
38+
AccountNotOwnedByOracle = 613,
3939
}
4040

4141
impl From<OracleError> for ProgramError {

0 commit comments

Comments
 (0)