Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
adamegyed committed Jun 26, 2024
1 parent 60916fa commit 2afe76b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/account/PluginManager2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {AccountStorage, getAccountStorage, toSetValue} from "./AccountStorage.so
abstract contract PluginManager2 {
using EnumerableSet for EnumerableSet.Bytes32Set;

// Index marking the start of the data for the validation function.
uint8 internal constant _RESERVED_VALIDATION_DATA_INDEX = 255;

error DefaultValidationAlreadySet(FunctionReference validationFunction);
Expand Down
4 changes: 4 additions & 0 deletions src/helpers/SparseCalldataSegmentLib.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.25;

/// @title Sparse Calldata Segment Library
/// @notice Library for working with sparsely-packed calldata segments, identified with an index.
/// @dev The first byte of each segment is the index of the segment.
/// To prevent accidental stack-to-deep errors, the body and index of the segment are extracted separately, rather than inline as part of the tuple returned by `getNextSegment`.
library SparseCalldataSegmentLib {
/// @notice Splits out a segment of calldata, sparsely-packed
/// @param source The calldata to extract the segment from
Expand Down

0 comments on commit 2afe76b

Please sign in to comment.