From 8164da1bd521c9ac9f9e4af522819bb3eca2c549 Mon Sep 17 00:00:00 2001 From: cloudclaim <824973921@qq.com> Date: Fri, 7 Jun 2024 16:18:23 +0800 Subject: [PATCH] chore: fix some comments Signed-off-by: cloudclaim <824973921@qq.com> --- contracts/BC_fusion/lib/RLPDecode.sol | 2 +- contracts/lib/RLPDecode.sol | 2 +- test/utils/RLPDecode.sol | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/BC_fusion/lib/RLPDecode.sol b/contracts/BC_fusion/lib/RLPDecode.sol index 6b250f63..49718255 100644 --- a/contracts/BC_fusion/lib/RLPDecode.sol +++ b/contracts/BC_fusion/lib/RLPDecode.sol @@ -144,7 +144,7 @@ library RLPDecode { assembly { result := mload(memPtr) - // shfit to the correct location if neccesary + // shift to the correct location if necessary if lt(len, 32) { result := div(result, exp(256, sub(32, len))) } } diff --git a/contracts/lib/RLPDecode.sol b/contracts/lib/RLPDecode.sol index acbf519b..3db833ab 100644 --- a/contracts/lib/RLPDecode.sol +++ b/contracts/lib/RLPDecode.sol @@ -136,7 +136,7 @@ library RLPDecode { assembly { result := mload(memPtr) - // shfit to the correct location if neccesary + // shift to the correct location if necessary if lt(len, 32) { result := div(result, exp(256, sub(32, len))) } } diff --git a/test/utils/RLPDecode.sol b/test/utils/RLPDecode.sol index 78db9f49..7baf1b79 100644 --- a/test/utils/RLPDecode.sol +++ b/test/utils/RLPDecode.sol @@ -136,7 +136,7 @@ library RLPDecode { assembly { result := mload(memPtr) - // shfit to the correct location if neccesary + // shift to the correct location if necessary if lt(len, 32) { result := div(result, exp(256, sub(32, len))) } }