From e5dabd5edfefa529bfa4826356ccbc1d0adf7a15 Mon Sep 17 00:00:00 2001 From: elshan_eth Date: Fri, 20 Dec 2024 17:46:28 +0100 Subject: [PATCH] fix vault test --- pkg/vault/test/foundry/BigPoolData.t.sol | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/vault/test/foundry/BigPoolData.t.sol b/pkg/vault/test/foundry/BigPoolData.t.sol index 6a46a8c47..8b451948a 100644 --- a/pkg/vault/test/foundry/BigPoolData.t.sol +++ b/pkg/vault/test/foundry/BigPoolData.t.sol @@ -49,7 +49,7 @@ contract BigPoolDataTest is BaseVaultTest { newPool = address(deployPoolMock(IVault(address(vault)), name, symbol)); - _approveForPool(IERC20(newPool)); + _approveForNewPool(IERC20(newPool)); factoryMock.registerTestPool( newPool, @@ -75,7 +75,7 @@ contract BigPoolDataTest is BaseVaultTest { vm.stopPrank(); } - function _approveForSender() internal { + function _approveNewPoolForSender() internal { for (uint256 i = 0; i < bigPoolTokens.length; ++i) { bigPoolTokens[i].approve(address(permit2), type(uint256).max); permit2.approve(address(bigPoolTokens[i]), address(router), type(uint160).max, type(uint48).max); @@ -83,11 +83,11 @@ contract BigPoolDataTest is BaseVaultTest { } } - function _approveForPool(IERC20 bpt) internal { + function _approveForNewPool(IERC20 bpt) internal { for (uint256 i = 0; i < users.length; ++i) { vm.startPrank(users[i]); - _approveForSender(); + _approveNewPoolForSender(); bpt.approve(address(router), type(uint256).max); bpt.approve(address(batchRouter), type(uint256).max);