Skip to content

Commit

Permalink
forge fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
pscott committed May 21, 2024
1 parent d65c63b commit 0fc1970
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 17 deletions.
14 changes: 7 additions & 7 deletions ethereum/src/execution-strategies/L1AvatarExecutionStrategy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ contract L1AvatarExecutionStrategy is SimpleQuorumExecutionStrategy {

/// @notice Initialization function, should be called immediately after deploying a new proxy to this contract.
function setUp(
address _owner,
address _target,
address _starknetCore,
uint256 _executionRelayer,
uint256[] memory _starknetSpaces,
uint256 _quorum
) public initializer {
address _owner,
address _target,
address _starknetCore,
uint256 _executionRelayer,
uint256[] memory _starknetSpaces,
uint256 _quorum
) public initializer {
__Ownable_init();
transferOwnership(_owner);
__SpaceManager_init(_starknetSpaces);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ contract L1AvatarExecutionStrategyFactory {
implementation = _implementation;
}


/// @notice Deploys a new L1 Avatar Execution Strategy contract.
/// @param _owner Address of the owner of this contract.
/// @param _target Address of the avatar that this module will pass transactions to.
Expand All @@ -35,8 +34,10 @@ contract L1AvatarExecutionStrategyFactory {
) public {
address clone = Clones.clone(implementation);

L1AvatarExecutionStrategy(clone).setUp(_owner, _target, _starknetCore, _executionRelayer, _starknetSpaces, _quorum);
L1AvatarExecutionStrategy(clone).setUp(
_owner, _target, _starknetCore, _executionRelayer, _starknetSpaces, _quorum
);
deployedContracts.push(L1AvatarExecutionStrategy(clone));
emit ContractDeployed(clone);
}
}
}
8 changes: 1 addition & 7 deletions ethereum/test/L1AvatarExecutionStrategy.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,7 @@ abstract contract L1AvatarExecutionStrategySettersTest is Test {

uint256[] memory starknetSpaces = new uint256[](1);
starknetSpaces[0] = 1;
avatarExecutionStrategy.setUp(
address(this),
address(this),
address(this),
0,
starknetSpaces,
0);
avatarExecutionStrategy.setUp(address(this), address(this), address(this), 0, starknetSpaces, 0);
}

function testEnableSpace() public {
Expand Down

0 comments on commit 0fc1970

Please sign in to comment.