Remove circular dep between InstructionError and SystemError (#11427)

This commit is contained in:
Greg Fitzgerald
2020-08-06 16:04:43 -06:00
committed by GitHub
parent 14dcaaee6c
commit 3fdd8ffdf0
4 changed files with 13 additions and 20 deletions

View File

@ -1032,6 +1032,7 @@ mod tests {
use solana_sdk::{
instruction::InstructionError,
signature::{Keypair, Signer},
system_instruction::SystemError,
system_transaction,
transaction::TransactionError,
};
@ -1397,7 +1398,7 @@ mod tests {
results[0] = (
Err(TransactionError::InstructionError(
1,
InstructionError::new_result_with_negative_lamports(),
SystemError::ResultWithNegativeLamports.into(),
)),
Some(HashAgeKind::Extant),
);