diff --git a/src/currency_core/offers_services_helpers.h b/src/currency_core/offers_services_helpers.h index eb890ad47..ee91df001 100644 --- a/src/currency_core/offers_services_helpers.h +++ b/src/currency_core/offers_services_helpers.h @@ -145,15 +145,24 @@ namespace bc_services { if (sa.instruction == BC_OFFERS_SERVICE_INSTRUCTION_ADD) { - extract_type_and_add(sa.body, cnt); + if (!extract_type_and_add(sa.body, cnt)) + { + LOG_PRINT_L1("Failed to extract offer_details, instruction: " << sa.instruction); + } } else if (sa.instruction == BC_OFFERS_SERVICE_INSTRUCTION_UPD) { - extract_type_and_add(sa.body, cnt); + if (!extract_type_and_add(sa.body, cnt)) + { + LOG_PRINT_L1("Failed to extract update_offer, instruction: " << sa.instruction); + } } else if (sa.instruction == BC_OFFERS_SERVICE_INSTRUCTION_DEL) { - extract_type_and_add(sa.body, cnt); + if (!extract_type_and_add(sa.body, cnt)) + { + LOG_PRINT_L1("Failed to extract cancel_offer, instruction: " << sa.instruction); + } } } }