diff --git a/.gas-snapshot b/.gas-snapshot index 70b0c35..46bccaa 100644 --- a/.gas-snapshot +++ b/.gas-snapshot @@ -5,13 +5,13 @@ MultiOwnerPluginIntegration:test_userOpValidation_owner_standardExecute() (gas: MultiOwnerPluginTest:testFuzz_isValidSignature_ContractOwner(bytes32) (runs: 256, μ: 110067, ~: 110067) MultiOwnerPluginTest:testFuzz_isValidSignature_ContractOwnerWithEOAOwner(bytes32) (runs: 256, μ: 120381, ~: 120381) MultiOwnerPluginTest:testFuzz_isValidSignature_EOAOwner(string,bytes32) (runs: 256, μ: 130741, ~: 130734) -MultiOwnerPluginTest:testFuzz_isValidSignature_PasskeyOwner(bytes32) (runs: 256, μ: 365504, ~: 365652) +MultiOwnerPluginTest:testFuzz_isValidSignature_PasskeyOwner(bytes32) (runs: 256, μ: 365665, ~: 365612) MultiOwnerPluginTest:testFuzz_runtimeValidationFunction_BadFunctionId(uint8) (runs: 256, μ: 9747, ~: 9747) MultiOwnerPluginTest:testFuzz_userOpValidationFunction_BadFunctionId(uint8) (runs: 256, μ: 10744, ~: 10744) MultiOwnerPluginTest:testFuzz_userOpValidationFunction_ContractOwner((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes)) (runs: 256, μ: 130908, ~: 130897) MultiOwnerPluginTest:testFuzz_userOpValidationFunction_ContractOwnerWithEOAOwner((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes)) (runs: 256, μ: 144523, ~: 144512) MultiOwnerPluginTest:testFuzz_userOpValidationFunction_EOAOwner(string,(address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes)) (runs: 256, μ: 138777, ~: 138780) -MultiOwnerPluginTest:testFuzz_userOpValidationFunction_PasskeyOwner((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes)) (runs: 256, μ: 373691, ~: 373630) +MultiOwnerPluginTest:testFuzz_userOpValidationFunction_PasskeyOwner((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes)) (runs: 256, μ: 373660, ~: 373608) MultiOwnerPluginTest:test_eip712Domain() (gas: 35438) MultiOwnerPluginTest:test_isValidSignature_failMalformedAddress() (gas: 15544) MultiOwnerPluginTest:test_isValidSignature_failWithOutOfBounds() (gas: 12319) diff --git a/src/OwnersLib.sol b/src/OwnersLib.sol index c4800a1..ed6c3ad 100644 --- a/src/OwnersLib.sol +++ b/src/OwnersLib.sol @@ -43,6 +43,7 @@ library OwnersLib { return false; } + /// @dev The search is bounded by the `length` argument and can read dirty data if `length` is not set correctly. function contains(PublicKey[MAX_OWNERS] memory keys, PublicKey memory owner, uint256 length) internal pure @@ -54,6 +55,7 @@ library OwnersLib { return false; } + /// @dev The search is bounded by the `length` argument and can read dirty data if `length` is not set correctly. function find(PublicKey[MAX_OWNERS] memory keys, PublicKey memory owner, uint256 length) internal pure