Remove unwrap (#16652)
This commit is contained in:
@ -108,7 +108,7 @@ pub enum InstructionError {
|
||||
AccountBorrowFailed,
|
||||
|
||||
/// Account data has an outstanding reference after a program's execution
|
||||
#[error("instruction left account with an outstanding reference borrowed")]
|
||||
#[error("instruction left account with an outstanding borrowed reference")]
|
||||
AccountBorrowOutstanding,
|
||||
|
||||
/// The same account was multiply passed to an on-chain program's entrypoint, but the program
|
||||
|
@ -94,6 +94,10 @@ pub enum TransactionError {
|
||||
|
||||
#[error("Transactions are currently disabled due to cluster maintenance")]
|
||||
ClusterMaintenance,
|
||||
|
||||
/// Transaction processing left an account with an outstanding borrowed reference
|
||||
#[error("Transaction processing left an account with an outstanding borrowed reference")]
|
||||
AccountBorrowOutstanding,
|
||||
}
|
||||
|
||||
pub type Result<T> = result::Result<T, TransactionError>;
|
||||
|
Reference in New Issue
Block a user