Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hieronx committed Jul 13, 2024
1 parent 67d592d commit 43139e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions test/integration/CentrifugeRouter.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,6 @@ contract CentrifugeRouterTest is BaseTest {
address vault_ = deployVault(
5, 6, restrictionManager, "name", "symbol", bytes16(bytes("1")), defaultAssetId, address(wrapper)
);
ERC7540Vault vault = ERC7540Vault(vault_);
vm.label(vault_, "vault");

address investor = makeAddr("investor");
Expand All @@ -621,7 +620,6 @@ contract CentrifugeRouterTest is BaseTest {
address vault_ = deployVault(
5, 6, restrictionManager, "name", "symbol", bytes16(bytes("1")), defaultAssetId, address(wrapper)
);
ERC7540Vault vault = ERC7540Vault(vault_);
vm.label(vault_, "vault");

address investor = makeAddr("investor");
Expand Down
6 changes: 3 additions & 3 deletions test/mocks/MockReentrantERC20Wrapper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ contract MockReentrantERC20Wrapper1 is ERC20, Mock, IERC20Wrapper {
return true;
}

function withdrawTo(address, /* account */ uint256 /* value */ ) external returns (bool) {
function withdrawTo(address, /* account */ uint256 /* value */ ) external pure returns (bool) {
return true;
}
}
Expand All @@ -41,13 +41,13 @@ contract MockReentrantERC20Wrapper2 is ERC20, Mock, IERC20Wrapper {
reentrancyTarget = ICentrifugeRouter(reentrancyTarget_);
}

function depositFor(address account, uint256 value) external returns (bool) {
function depositFor(address, /* account */ uint256 /* value */ ) external returns (bool) {
bytes[] memory calls = new bytes[](0);
reentrancyTarget.multicall(calls);
return true;
}

function withdrawTo(address, /* account */ uint256 /* value */ ) external returns (bool) {
function withdrawTo(address, /* account */ uint256 /* value */ ) external pure returns (bool) {
return true;
}
}

0 comments on commit 43139e4

Please sign in to comment.