Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change library functions to internal #8

Merged
merged 1 commit into from
Nov 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/SafeTestTools.sol
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ library SafeTestLib {
address gasToken,
address refundReceiver,
bytes memory signatures
) public returns (bool) {
) internal returns (bool) {
if (instance.owners.length == 0) {
revert("SAFETEST: Instance not initialized. Call _setupSafe() to initialize a test safe");
}
Expand Down Expand Up @@ -171,13 +171,13 @@ library SafeTestLib {
uint256 value,
bytes memory data,
Enum.Operation operation
) public returns (bool) {
) internal returns (bool) {
return execTransaction(instance, to, value, data, operation, 0, 0, 0, address(0), address(0), "");
}

/// @dev performs a noraml "call"
function execTransaction(SafeInstance memory instance, address to, uint256 value, bytes memory data)
public
internal
returns (bool)
{
return execTransaction(instance, to, value, data, Enum.Operation.Call, 0, 0, 0, address(0), address(0), "");
Expand Down Expand Up @@ -227,7 +227,7 @@ library SafeTestLib {
);
}

function EIP1271Sign(SafeInstance memory instance, bytes memory data) public {
function EIP1271Sign(SafeInstance memory instance, bytes memory data) internal {
address signMessageLib = address(new SignMessageLib());
execTransaction({
instance: instance,
Expand Down