Add From for SanitizeError > TransactionError
This commit is contained in:
committed by
mergify[bot]
parent
e25846e1ad
commit
3f73affb2e
@ -613,8 +613,7 @@ impl Accounts {
|
||||
use solana_sdk::sanitize::Sanitize;
|
||||
let keys: Vec<Result<_>> = OrderedIterator::new(txs, txs_iteration_order)
|
||||
.map(|tx| {
|
||||
tx.sanitize()
|
||||
.map_err(|_| TransactionError::SanitizeFailure)?;
|
||||
tx.sanitize().map_err(TransactionError::from)?;
|
||||
|
||||
if Self::has_duplicates(&tx.message.account_keys) {
|
||||
return Err(TransactionError::AccountLoadedTwice);
|
||||
|
Reference in New Issue
Block a user