Skip to content

Commit

Permalink
add bool return type
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandpo committed Nov 16, 2023
1 parent e270f7c commit e5bc3c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/origin_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit e5bc3c3

Please sign in to comment.