From e5bc3c36ffaffb549287252bda203b4dbcae2aba Mon Sep 17 00:00:00 2001 From: rolandpo Date: Thu, 16 Nov 2023 23:21:55 +0100 Subject: [PATCH] add bool return type --- src/origin_plugin.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/origin_plugin.h b/src/origin_plugin.h index 286fd592..54eeaba9 100644 --- a/src/origin_plugin.h +++ b/src/origin_plugin.h @@ -161,7 +161,7 @@ void handle_finalize(void *parameters); void handle_provide_token(void *parameters); void handle_query_contract_id(void *parameters); -static inline check_token_sent(origin_parameters_t *context) { +static inline bool check_token_sent(origin_parameters_t *context) { if (ADDRESS_IS_OETH(context->contract_address_sent)) { context->decimals_sent = OETH_DECIMALS; context->tokens_found |= TOKEN_SENT_FOUND; @@ -183,7 +183,7 @@ static inline check_token_sent(origin_parameters_t *context) { return true; } -static inline check_token_received(origin_parameters_t *context) { +static inline bool check_token_received(origin_parameters_t *context) { if (ADDRESS_IS_OETH(context->contract_address_received)) { context->decimals_received = OETH_DECIMALS; context->tokens_found |= TOKEN_RECEIVED_FOUND;