File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
examples/log-events-example Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -82,8 +82,7 @@ impl InstructionMetadata {
82
82
pub fn decode_log_events < T : CarbonDeserialize > ( & self ) -> Vec < T > {
83
83
self . extract_event_log_data ( )
84
84
. into_iter ( )
85
- . map ( |log| <T as CarbonDeserialize >:: deserialize ( & mut & log[ 8 ..] ) )
86
- . flatten ( )
85
+ . filter_map ( |log| <T as CarbonDeserialize >:: deserialize ( & log[ 8 ..] ) )
87
86
. collect ( )
88
87
}
89
88
Original file line number Diff line number Diff line change @@ -4,12 +4,12 @@ version = "0.9.1"
4
4
edition = { workspace = true }
5
5
6
6
[dependencies ]
7
+
8
+ async-trait = { workspace = true }
7
9
carbon-core = { workspace = true }
8
- carbon-raydium-cpmm-decoder = { workspace = true }
9
10
carbon-log-metrics = { workspace = true }
11
+ carbon-raydium-cpmm-decoder = { workspace = true }
10
12
carbon-yellowstone-grpc-datasource = { workspace = true }
11
-
12
- async-trait = { workspace = true }
13
13
dotenv = { workspace = true }
14
14
env_logger = { workspace = true }
15
15
solana-instruction = { workspace = true }
You can’t perform that action at this time.
0 commit comments