Skip to content

Commit

Permalink
fix(store): slice4 should return bytes4
Browse files Browse the repository at this point in the history
  • Loading branch information
yonadaa committed Dec 6, 2023
1 parent c8ffd09 commit 6229a6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/store/src/Bytes.sol
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ library Bytes {
* @return The extracted bytes4 value from the specified position in the bytes32 value.
*/
function slice4(bytes32 data, uint256 start) internal pure returns (bytes4) {
bytes2 output;
bytes4 output;
assembly {
output := shl(mul(8, start), data)
}
Expand Down

0 comments on commit 6229a6d

Please sign in to comment.