remove use_rpc

This commit is contained in:
wood
2025-07-06 23:38:09 +08:00
parent d13c382a46
commit 0da3a3b918
2 changed files with 0 additions and 6 deletions
-3
View File
@@ -12,7 +12,6 @@ pub struct TradeConfig {
pub priority_fee: PriorityFee,
pub commitment: CommitmentConfig,
pub lookup_table_key: Option<Pubkey>,
pub use_rpc: bool,
}
impl TradeConfig {
@@ -22,7 +21,6 @@ impl TradeConfig {
priority_fee: PriorityFee,
commitment: CommitmentConfig,
lookup_table_key: Option<Pubkey>,
use_rpc: bool,
) -> Self {
Self {
rpc_url,
@@ -30,7 +28,6 @@ impl TradeConfig {
priority_fee,
commitment,
lookup_table_key,
use_rpc,
}
}
}
-3
View File
@@ -259,7 +259,6 @@ async fn test_pumpfun_sniper() -> AnyResult<()> {
priority_fee: PriorityFee::default(),
swqos_configs,
lookup_table_key: None,
use_rpc: true,
};
let solana_trade_client = SolanaTrade::new(Arc::new(payer), trade_config).await;
let creator = Pubkey::from_str("xxx")?; // dev account
@@ -304,7 +303,6 @@ async fn test_pumpfun() -> AnyResult<()> {
priority_fee: PriorityFee::default(),
swqos_configs,
lookup_table_key: None,
use_rpc: true,
};
let solana_trade_client = SolanaTrade::new(Arc::new(payer), trade_config).await;
@@ -376,7 +374,6 @@ async fn test_pumpswap() -> AnyResult<()> {
priority_fee: PriorityFee::default(),
swqos_configs,
lookup_table_key: None,
use_rpc: true,
};
let solana_trade_client = SolanaTrade::new(Arc::new(payer), trade_config).await;
let creator = Pubkey::from_str("11111111111111111111111111111111")?; // dev account