Skip to content

Commit

Permalink
corrected safe fork lib to be internal
Browse files Browse the repository at this point in the history
  • Loading branch information
frontier159 committed Aug 11, 2023
1 parent b006c84 commit 81553f6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion protocol/contracts/v2/safeGuards/SafeForked.sol
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ library SafeForked {
bytes memory data,
bytes memory signatures,
uint256 requiredSignatures
) public view {
) internal view {
// Check that the provided signature data is not too short
// Left as a revert string so it shows in the Safe UI, and made more descriptive.
require(signatures.length >= requiredSignatures * 65, "!Dynamic Signature Threshold");
Expand Down
16 changes: 8 additions & 8 deletions protocol/test/forge/v2/safeGuards/ThresholdSafeGuard.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -794,8 +794,8 @@ contract ThresholdSafeGuardTest is ThresholdSafeGuardTestBase {
abi.encodeWithSelector(fnSelector, "abc", 1),
makeSignSpecs(
SignSpec(SignType.AS_EXECUTOR, safeOwners[0]),
SignSpec(SignType.AS_CONTRACT, safeOwners[3]), // This is a Safe itself
SignSpec(SignType.AS_EOA_TX, safeOwners[1])
SignSpec(SignType.AS_EOA_TX, safeOwners[1]),
SignSpec(SignType.AS_CONTRACT, safeOwners[3]) // This is a Safe itself
),
// Add the signer details Safe owner - only need 2/3 as this safe doesn't use the same guard
makeSignSpecs(
Expand All @@ -814,8 +814,8 @@ contract ThresholdSafeGuardTest is ThresholdSafeGuardTestBase {
abi.encodeWithSelector(fnSelector2),
makeSignSpecs(
SignSpec(SignType.AS_EXECUTOR, safeOwners[0]),
SignSpec(SignType.AS_CONTRACT, safeOwners[3]), // This is a Safe itself
SignSpec(SignType.AS_EOA_TX, safeOwners[1])
SignSpec(SignType.AS_EOA_TX, safeOwners[1]),
SignSpec(SignType.AS_CONTRACT, safeOwners[3]) // This is a Safe itself
),
// Add the signer details Safe owner - only need 2/3 as this safe doesn't use the same guard
makeSignSpecs(
Expand Down Expand Up @@ -1004,8 +1004,8 @@ contract ThresholdSafeGuardExecuteTest is ThresholdSafeGuardTestBase {
fnCall,
makeSignSpecs(
SignSpec(SignType.AS_EXECUTOR, safeOwners[0]),
SignSpec(SignType.AS_CONTRACT, safeOwners[3]), // This is a Safe itself
SignSpec(SignType.AS_EOA_TX, safeOwners[1])
SignSpec(SignType.AS_EOA_TX, safeOwners[1]),
SignSpec(SignType.AS_CONTRACT, safeOwners[3]) // This is a Safe itself
),
// Add the signer details Safe owner
makeSignSpecs(
Expand All @@ -1029,8 +1029,8 @@ contract ThresholdSafeGuardExecuteTest is ThresholdSafeGuardTestBase {
fnCall,
makeSignSpecs(
SignSpec(SignType.AS_EXECUTOR, safeOwners[0]),
SignSpec(SignType.AS_CONTRACT, safeOwners[3]), // This is a Safe itself
SignSpec(SignType.AS_EOA_TX, safeOwners[1])
SignSpec(SignType.AS_EOA_TX, safeOwners[1]),
SignSpec(SignType.AS_CONTRACT, safeOwners[3]) // This is a Safe itself
),
// Add the signer details Safe owner
makeSignSpecs(
Expand Down

0 comments on commit 81553f6

Please sign in to comment.