Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
shahthepro committed Apr 26, 2024
1 parent 808e637 commit a0c36d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handle_provide_parameter.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ static bool handle_token_sent_curve_pool(ethPluginProvideParameter_t *msg, conte
msg->pluginSharedRO->txContent->destination,
ADDRESS_LENGTH) == 0;

// Ensure the everything but the last 2 bits are zero
// Ensure that everything but the last 2 bytes are zero
for (uint32_t i = 2; i <= INT128_LENGTH / 2; i++) {
if (U2BE(msg->parameter, PARAMETER_LENGTH - (2 * i)) != 0) {
PRINTF("Unsupported Token\n");
Expand Down Expand Up @@ -92,7 +92,7 @@ static bool handle_token_received_curve_pool(ethPluginProvideParameter_t *msg, c
msg->pluginSharedRO->txContent->destination,
ADDRESS_LENGTH) == 0;

// Ensure the everything but the last 2 bits are zero
// Ensure that everything but the last 2 bytes are zero
for (uint32_t i = 2; i <= INT128_LENGTH / 2; i++) {
if (U2BE(msg->parameter, PARAMETER_LENGTH - (2 * i)) != 0) {
PRINTF("Unsupported Token\n");
Expand Down

0 comments on commit a0c36d4

Please sign in to comment.