Rename CustomError to Custom (#9207)
This commit is contained in:
@ -5018,7 +5018,7 @@ mod tests {
|
||||
if !solana_vote_program::check_id(program_id) {
|
||||
return Err(InstructionError::IncorrectProgramId);
|
||||
}
|
||||
Err(InstructionError::CustomError(42))
|
||||
Err(InstructionError::Custom(42))
|
||||
}
|
||||
|
||||
assert!(bank.get_account(&solana_vote_program::id()).is_none());
|
||||
@ -5047,7 +5047,7 @@ mod tests {
|
||||
bank.process_transaction(&transaction),
|
||||
Err(TransactionError::InstructionError(
|
||||
1,
|
||||
InstructionError::CustomError(42)
|
||||
InstructionError::Custom(42)
|
||||
))
|
||||
);
|
||||
}
|
||||
@ -5067,7 +5067,7 @@ mod tests {
|
||||
_ka: &[KeyedAccount],
|
||||
_data: &[u8],
|
||||
) -> std::result::Result<(), InstructionError> {
|
||||
Err(InstructionError::CustomError(42))
|
||||
Err(InstructionError::Custom(42))
|
||||
}
|
||||
|
||||
let mock_account = Keypair::new();
|
||||
@ -5097,7 +5097,7 @@ mod tests {
|
||||
bank.process_transaction(&transaction),
|
||||
Err(TransactionError::InstructionError(
|
||||
1,
|
||||
InstructionError::CustomError(42)
|
||||
InstructionError::Custom(42)
|
||||
))
|
||||
);
|
||||
}
|
||||
@ -5113,7 +5113,7 @@ mod tests {
|
||||
_ka: &[KeyedAccount],
|
||||
_data: &[u8],
|
||||
) -> std::result::Result<(), InstructionError> {
|
||||
Err(InstructionError::CustomError(42))
|
||||
Err(InstructionError::Custom(42))
|
||||
}
|
||||
|
||||
// Non-native loader accounts can not be used for instruction processing
|
||||
|
Reference in New Issue
Block a user