rm unused send_transaction_config fields
This commit is contained in:
parent
0ff895a862
commit
7180d959e4
|
@ -51,11 +51,8 @@ impl LiteBridge {
|
|||
SendTransactionParams(
|
||||
tx,
|
||||
SendTransactionConfig {
|
||||
skip_preflight: _, //TODO:
|
||||
preflight_commitment: _, //TODO:
|
||||
encoding,
|
||||
max_retries,
|
||||
min_context_slot: _, //TODO:
|
||||
},
|
||||
): SendTransactionParams,
|
||||
) -> Result<String, JsonRpcError> {
|
||||
|
|
|
@ -1,17 +1,15 @@
|
|||
use crate::encoding::BinaryEncoding;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use solana_sdk::commitment_config::CommitmentLevel;
|
||||
use solana_sdk::slot_history::Slot;
|
||||
|
||||
#[derive(Debug, Default, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct SendTransactionConfig {
|
||||
#[serde(default)]
|
||||
pub skip_preflight: bool,
|
||||
#[serde(default)]
|
||||
pub preflight_commitment: CommitmentLevel,
|
||||
// #[serde(default)]
|
||||
// pub skip_preflight: bool,
|
||||
// #[serde(default)]
|
||||
// pub preflight_commitment: CommitmentLevel,
|
||||
#[serde(default)]
|
||||
pub encoding: BinaryEncoding,
|
||||
pub max_retries: Option<u16>,
|
||||
pub min_context_slot: Option<Slot>,
|
||||
// pub min_context_slot: Option<Slot>,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue