We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ff86c7 commit 93352caCopy full SHA for 93352ca
program/rust/src/deserialize.rs
@@ -83,7 +83,7 @@ pub fn check_owned_and_rent_exempt_account<T: PythAccount>(
83
// Check owner
84
pyth_assert(
85
account.owner == program_id,
86
- OracleError::AccountNotOwnerByOracle.into(),
+ OracleError::AccountNotOwnedByOracle.into(),
87
)?;
88
Ok(())
89
}
program/rust/src/error.rs
@@ -34,8 +34,8 @@ pub enum OracleError {
34
InstructionDataSliceMisaligned = 611,
35
#[error("SmallSizeOrNotEnoughRent")]
36
SmallSizeOrNotEnoughRent = 612,
37
- #[error("AccountNotOwnerByOracle")]
38
- AccountNotOwnerByOracle = 613,
+ #[error("AccountNotOwnedByOracle")]
+ AccountNotOwnedByOracle = 613,
39
40
41
impl From<OracleError> for ProgramError {
0 commit comments