Skip to content

Commit

Permalink
trivial, nitty reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
nonergodic committed Dec 30, 2024
1 parent 2630b92 commit c4e03d5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Utils.sol
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,7 @@ function keccak256Cd(
/// @solidity memory-safe-assembly
assembly {
let freeMemory := mload(FREE_MEMORY_PTR)

let length := encoded.length
calldatacopy(freeMemory, encoded.offset, length)

hash := keccak256(freeMemory, length)
calldatacopy(freeMemory, encoded.offset, encoded.length)
hash := keccak256(freeMemory, encoded.length)
}
}

0 comments on commit c4e03d5

Please sign in to comment.