From 08982498d6e75174826a941a9f277920b47d1149 Mon Sep 17 00:00:00 2001 From: 4l0n50 Date: Fri, 15 Dec 2023 17:13:52 +0100 Subject: [PATCH] Remove U256::as_u8 in comment --- evm/src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evm/src/util.rs b/evm/src/util.rs index bbbd8af1..fa19ef09 100644 --- a/evm/src/util.rs +++ b/evm/src/util.rs @@ -70,7 +70,7 @@ pub(crate) fn u256_to_u64(u256: U256) -> Result<(F, F), ProgramError> )) } -/// Safe alternative to `U256::as_u8()`, which errors in case of overflow instead of panicking. +/// Safe conversion from U256 to u8, which errors in case of overflow instead of panicking. pub(crate) fn u256_to_u8(u256: U256) -> Result { u256.try_into().map_err(|_| ProgramError::IntegerTooLarge) }