From 329e1a73fe58408177273c553e5b0fe78b919b14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20=C5=9Aliwak?= Date: Mon, 31 Jan 2022 20:05:27 +0100 Subject: [PATCH] elementfi: Replace disallowed mapping delete with direct delete of members in Balancer contract --- test/externalTests/elementfi.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/test/externalTests/elementfi.sh b/test/externalTests/elementfi.sh index 7227ce37e..9f2a342c9 100755 --- a/test/externalTests/elementfi.sh +++ b/test/externalTests/elementfi.sh @@ -80,6 +80,7 @@ function elementfi_test sed -i 's|address(uint256(_data))|address(uint160(uint256(_data)))|g' lib/openzeppelin/Create2.sol sed -i 's|address(uint256(poolId) >> (12 \* 8))|address(uint160(uint256(poolId) >> (12 * 8)))|g' vault/PoolRegistry.sol sed -i 's|bytes32(uint256(pool))|bytes32(uint256(uint160(pool)))|g' vault/PoolRegistry.sol + sed -i 's|delete _twoTokenPoolTokens\[poolId\];|delete _twoTokenPoolTokens[poolId].tokenA;delete _twoTokenPoolTokens[poolId].tokenB;|g' vault/balances/TwoTokenPoolsBalance.sol popd # Several tests fail unless we use the exact versions hard-coded in package-lock.json