(cherry picked from commit 9940870c89
)
Co-authored-by: Justin Starry <justin@solana.com>
This commit is contained in:
@@ -2181,7 +2181,10 @@ impl RpcSol for RpcSolImpl {
|
||||
.into());
|
||||
}
|
||||
|
||||
let preflight_bank = &*meta.bank(config.preflight_commitment);
|
||||
let preflight_commitment = config
|
||||
.preflight_commitment
|
||||
.map(|commitment| CommitmentConfig { commitment });
|
||||
let preflight_bank = &*meta.bank(preflight_commitment);
|
||||
if let (Err(err), _log_output) =
|
||||
preflight_bank.simulate_transaction(transaction.clone())
|
||||
{
|
||||
|
Reference in New Issue
Block a user