Skip to content

Commit 0e36f99

Browse files
authored
Merge pull request #148 from Erbsensuppee/fix/enhanced-websocket-example-type-mismatch
fix: resolve type mismatch in enhanced_websocket_transactions example
2 parents f62d528 + 47094b1 commit 0e36f99

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

examples/enhanced_websocket_transactions.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,14 @@ async fn main() -> Result<()> {
1515
let key: pubkey::Pubkey = pubkey!("BtsmiEEvnSuUnKxqXj2PZRYpPJAc7C34mGz8gtJ1DAaH");
1616

1717
let config: RpcTransactionsConfig = RpcTransactionsConfig {
18-
filter: TransactionSubscribeFilter::standard(&key),
18+
filter: TransactionSubscribeFilter {
19+
account_include: Some(vec![key.to_string()]),
20+
vote: Some(false),
21+
failed: None,
22+
signature: None,
23+
account_exclude: None,
24+
account_required: None,
25+
},
1926
options: TransactionSubscribeOptions::default(),
2027
};
2128

0 commit comments

Comments
 (0)