remove use_rpc
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user