Skip to content

Commit c7e9eee

Browse files
openzeppelin workaround for problematic test case
1 parent 24d534f commit c7e9eee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/externalTests/zeppelin.sh

+3
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ function zeppelin_test
9797
sed -i "s|it(\('calling upgradeToAndCall from a contract that is not an ERC1967 proxy\)|it.skip(\1|g" test/proxy/utils/UUPSUpgradeable.test.js
9898
sed -i "s|it(\('rejects overflow'\)|it.skip(\1|g" test/token/ERC20/ERC20.test.js
9999
sed -i "s|it(\('decimals overflow'\)|it.skip(\1|g" test/token/ERC20/extensions/ERC4626.test.js
100+
# TODO: Remove when next hardhat version releases, the fix is already merged: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/5663
101+
# Fails with ProviderError: Invalid transaction: GasFloorMoreThanGasLimit
102+
sed -i "s|+ 2_000n|+ 10_000n|g" test/metatx/ERC2771Forwarder.test.js
100103

101104
# Here only the testToInt(248) and testToInt(256) cases fail so change the loop range to skip them
102105
sed -i "s|range(8, 256, 8)\(.forEach(bits => testToInt(bits));\)|range(8, 240, 8)\1|" test/utils/math/SafeCast.test.js

0 commit comments

Comments
 (0)