From 4353c49855dc016928eb6a255bfb12fda044249a Mon Sep 17 00:00:00 2001 From: realbigsean Date: Tue, 3 Jan 2023 08:55:19 -0500 Subject: [PATCH] Update beacon_node/execution_layer/src/engine_api/json_structures.rs --- beacon_node/execution_layer/src/engine_api/json_structures.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beacon_node/execution_layer/src/engine_api/json_structures.rs b/beacon_node/execution_layer/src/engine_api/json_structures.rs index c09541f3b..728150a20 100644 --- a/beacon_node/execution_layer/src/engine_api/json_structures.rs +++ b/beacon_node/execution_layer/src/engine_api/json_structures.rs @@ -350,8 +350,8 @@ impl From for JsonWithdrawal { impl From for Withdrawal { fn from(jw: JsonWithdrawal) -> Self { - // This comparison is to avoid a scenarion where the EE gives us too large a number this - // panics when it attempts to case to a `u64`. + // This comparison is done to avoid a scenario where the EE gives us too large a number and we + // panic when attempting to cast to a `u64`. let amount = std::cmp::max(jw.amount / 1000000000, Uint256::from(u64::MAX)); Self { index: jw.index,