File tree 2 files changed +4
-4
lines changed
components/chainhook-sdk/src
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -181,13 +181,13 @@ impl ChainhookSpecification {
181
181
182
182
pub fn into_serialized_json ( & self ) -> JsonValue {
183
183
match & self {
184
- Self :: Bitcoin ( data) => json ! ( {
184
+ Self :: Stacks ( data) => json ! ( {
185
185
"chain" : "stacks" ,
186
186
"uuid" : data. uuid,
187
187
"network" : data. network,
188
188
"predicate" : data. predicate,
189
189
} ) ,
190
- Self :: Stacks ( data) => json ! ( {
190
+ Self :: Bitcoin ( data) => json ! ( {
191
191
"chain" : "bitcoin" ,
192
192
"uuid" : data. uuid,
193
193
"network" : data. network,
Original file line number Diff line number Diff line change @@ -1208,12 +1208,12 @@ pub async fn start_observer_commands_handler(
1208
1208
if let Some ( ref tx) = observer_events_tx {
1209
1209
let _ = tx. send ( ObserverEvent :: PredicateRegistered ( spec) ) ;
1210
1210
} else {
1211
- ctx. try_log ( |logger| slog:: info!( logger, "Enabling Predicate" ) ) ;
1211
+ ctx. try_log ( |logger| slog:: info!( logger, "Enabling Predicate {}" , spec . uuid ( ) ) ) ;
1212
1212
chainhook_store. predicates . enable_specification ( & mut spec) ;
1213
1213
}
1214
1214
}
1215
1215
ObserverCommand :: EnablePredicate ( mut spec) => {
1216
- ctx. try_log ( |logger| slog:: info!( logger, "Enabling Predicate" ) ) ;
1216
+ ctx. try_log ( |logger| slog:: info!( logger, "Enabling Predicate {}" , spec . uuid ( ) ) ) ;
1217
1217
chainhook_store. predicates . enable_specification ( & mut spec) ;
1218
1218
if let Some ( ref tx) = observer_events_tx {
1219
1219
let _ = tx. send ( ObserverEvent :: PredicateEnabled ( spec) ) ;
You can’t perform that action at this time.
0 commit comments