Skip to content

Commit

Permalink
forge fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mdehoog committed Oct 29, 2024
1 parent 23a6ef5 commit 5abae8a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
5 changes: 1 addition & 4 deletions script/universal/MultisigBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,7 @@ abstract contract MultisigBase is CommonBase {
);
}

function _execTransaction(address _safe, bytes memory _data, bytes memory _signatures)
internal
returns (bool)
{
function _execTransaction(address _safe, bytes memory _data, bytes memory _signatures) internal returns (bool) {
return IGnosisSafe(_safe).execTransaction({
to: MULTICALL3_ADDRESS,
value: 0,
Expand Down
9 changes: 2 additions & 7 deletions script/universal/NestedMultisigBuilder.sol
Original file line number Diff line number Diff line change
Expand Up @@ -208,18 +208,13 @@ abstract contract NestedMultisigBuilder is MultisigBase {
calls[0] = IMulticall3.Call3({target: _signerSafe, allowFailure: false, callData: approveHashExec});

// simulate the final state changes tx, so that signer can verify the final results
bytes memory finalExec =
_execTransationCalldata(_safe, _data, Signatures.genPrevalidatedSignature(_signerSafe));
bytes memory finalExec = _execTransationCalldata(_safe, _data, Signatures.genPrevalidatedSignature(_signerSafe));
calls[1] = IMulticall3.Call3({target: _safe, allowFailure: false, callData: finalExec});

return calls;
}

function _overrides(address _signerSafe, address _safe)
internal
view
returns (Simulation.StateOverride[] memory)
{
function _overrides(address _signerSafe, address _safe) internal view returns (Simulation.StateOverride[] memory) {
Simulation.StateOverride[] memory simOverrides = _simulationOverrides();
Simulation.StateOverride[] memory overrides = new Simulation.StateOverride[](2 + simOverrides.length);
overrides[0] = _safeOverrides(_signerSafe, MULTICALL3_ADDRESS);
Expand Down
3 changes: 1 addition & 2 deletions script/universal/Simulation.sol
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ library Simulation {
view
returns (StateOverride memory)
{
StateOverride memory state =
StateOverride({contractAddress: _safe, overrides: new StorageOverride[](0)});
StateOverride memory state = StateOverride({contractAddress: _safe, overrides: new StorageOverride[](0)});
state = addThresholdOverride(_safe, state);
state = addOwnerOverride(_safe, state, _owner);
state = addNonceOverride(_safe, state, _nonce);
Expand Down

0 comments on commit 5abae8a

Please sign in to comment.