Skip to content

Commit

Permalink
[Common] fixes after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
IliaAzhel committed Jul 15, 2024
1 parent b4ba508 commit 166f0db
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/periphery/contracts/test/CustomPoolDeployerTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ contract CustomPoolDeployerTest {
return;
}

function setPluginForPool(address pool, address plugin) external {
poolToPlugin[pool] = plugin;
function setPluginForPool(address pool, address _plugin) external {
poolToPlugin[pool] = _plugin;
}

function setTickSpacing(address pool, int24 newTickSpacing) external {
Expand Down
5 changes: 5 additions & 0 deletions src/periphery/contracts/test/MockPluginFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ contract MockPluginFactory is IAlgebraPluginFactory {
return _createPlugin(pool);
}

/// @inheritdoc IAlgebraPluginFactory
function afterCreatePoolHook(address, address, address) external view override {
require(msg.sender == algebraFactory);
}

// function createPluginForExistingPool(address token0, address token1) external override returns (address) {
// IAlgebraFactory factory = IAlgebraFactory(algebraFactory);
// require(factory.hasRoleOrOwner(factory.POOLS_ADMINISTRATOR_ROLE(), msg.sender));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exports[`NonfungiblePositionManager #collect gas transfers token0 only [ @skip-o

exports[`NonfungiblePositionManager #collect gas transfers token1 only [ @skip-on-coverage ] 1`] = `120193`;

exports[`NonfungiblePositionManager #createAndInitializePoolIfNecessary gas [ @skip-on-coverage ] 1`] = `5262688`;
exports[`NonfungiblePositionManager #createAndInitializePoolIfNecessary gas [ @skip-on-coverage ] 1`] = `5263839`;

exports[`NonfungiblePositionManager #decreaseLiquidity gas complete decrease [ @skip-on-coverage ] 1`] = `169445`;

Expand Down

0 comments on commit 166f0db

Please sign in to comment.