diff --git a/src_plugins/eth2/eth2_plugin.c b/src_plugins/eth2/eth2_plugin.c index 66793d5..572df0f 100644 --- a/src_plugins/eth2/eth2_plugin.c +++ b/src_plugins/eth2/eth2_plugin.c @@ -47,7 +47,8 @@ static int check_deposit_contract(ethPluginInitContract_t *msg) { &global_sha3, chainConfig); - uint8_t destinationLen = strlen(destinationAddress); + uint8_t destinationLen = strlen(destinationAddress) + 1; // Adding one to account for \0. + // Ensure address is in lowercase, to match DEPOSIT_CONTRACT_ADDRESS' case. to_lowercase(destinationAddress, destinationLen);