Fix RPC transaction method configs serialization (#12100)
This commit is contained in:
@ -2176,7 +2176,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