File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
crates/script-sequence/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ impl BroadcastReader {
115
115
116
116
broadcast. transactions . iter ( ) . any ( move |tx| {
117
117
let name_filter =
118
- tx. contract_name . clone ( ) . is_some_and ( |cn| cn == self . contract_name ) ;
118
+ tx. contract_name . as_ref ( ) . is_some_and ( |cn| * cn == self . contract_name ) ;
119
119
120
120
let type_filter = self . tx_type . is_empty ( ) || self . tx_type . contains ( & tx. opcode ) ;
121
121
@@ -149,7 +149,7 @@ impl BroadcastReader {
149
149
. into_iter ( )
150
150
. filter ( |tx| {
151
151
let name_filter =
152
- tx. contract_name . clone ( ) . is_some_and ( |cn| cn == self . contract_name ) ;
152
+ tx. contract_name . as_ref ( ) . is_some_and ( |cn| * cn == self . contract_name ) ;
153
153
154
154
let type_filter = self . tx_type . is_empty ( ) || self . tx_type . contains ( & tx. opcode ) ;
155
155
You can’t perform that action at this time.
0 commit comments