Skip to content

Commit

Permalink
Remove aux variable
Browse files Browse the repository at this point in the history
  • Loading branch information
cristovaoth committed Oct 27, 2023
1 parent 6af30a6 commit f3211ac
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions contracts/signature/SignatureChecker.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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:]);
}

/**
Expand Down

0 comments on commit f3211ac

Please sign in to comment.