From f3211aceda2f08a26ac94d0e0950aa210223e0dc Mon Sep 17 00:00:00 2001 From: Cristovao Honorato Date: Wed, 25 Oct 2023 23:06:42 +0200 Subject: [PATCH] Remove aux variable --- contracts/signature/SignatureChecker.sol | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/contracts/signature/SignatureChecker.sol b/contracts/signature/SignatureChecker.sol index 69eadcbd..6d55a4f3 100644 --- a/contracts/signature/SignatureChecker.sol +++ b/contracts/signature/SignatureChecker.sol @@ -98,10 +98,9 @@ abstract contract SignatureChecker { function _splitSignature( bytes calldata data ) private pure returns (uint8 v, bytes32 r, bytes32 s) { - uint256 length = data.length; - v = uint8(bytes1(data[length - 1:])); - r = bytes32(data[length - 65:]); - s = bytes32(data[length - 33:]); + v = uint8(bytes1(data[data.length - 1:])); + r = bytes32(data[data.length - 65:]); + s = bytes32(data[data.length - 33:]); } /**