Return a better error when a program account isn't found (#4310)

This commit is contained in:
Greg Fitzgerald
2019-05-16 11:32:27 -06:00
committed by GitHub
parent 7d42ae30d9
commit fff1631a8b
2 changed files with 5 additions and 2 deletions

View File

@ -22,6 +22,9 @@ pub enum TransactionError {
/// Attempt to debit from `Pubkey`, but no found no record of a prior credit.
AccountNotFound,
/// Attempt to load program from `Pubkey`, but it doesn't exist.
ProgramAccountNotFound,
/// The from `Pubkey` does not have sufficient balance to pay the fee to schedule the transaction
InsufficientFundsForFee,