Skip to content

Commit 1698384

Browse files
authored
Merge pull request #12673 from ethereum/work-around-element-fi-expired-timestamp
Bypass an expiration check in ElementFi until it's fixed upstream
2 parents 7a5be4a + ccbc865 commit 1698384

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/externalTests/elementfi.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ function elementfi_test
8585
sed -i 's|bytes32(uint256(pool))|bytes32(uint256(uint160(pool)))|g' vault/PoolRegistry.sol
8686
popd
8787

88+
# The test suite uses forked mainnet and an expiration period that's too short.
89+
# TODO: Remove when https://github.com/element-fi/elf-contracts/issues/243 is fixed.
90+
sed -i 's|^\s*require(_expiration - block\.timestamp < _unitSeconds);\s*$||g' contracts/ConvergentCurvePool.sol
91+
8892
# Several tests fail unless we use the exact versions hard-coded in package-lock.json
8993
#neutralize_package_lock
9094

0 commit comments

Comments
 (0)