Skip to content

Commit 4cfdaf4

Browse files
authored
Remove unused contracts (#17)
* Remove unused contracts * Point tests towards new contracts
1 parent 211d261 commit 4cfdaf4

8 files changed

Lines changed: 119 additions & 443 deletions

File tree

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@ docs/
1616
lcov.info
1717
lcov.*
1818
.lcov*
19-
*lcov*
19+
*lcov*
20+
21+
settings.local.json

solidity/src/helpers/CATValidator.sol

Lines changed: 0 additions & 177 deletions
This file was deleted.

solidity/src/helpers/CallProxy.sol

Lines changed: 0 additions & 32 deletions
This file was deleted.

solidity/src/helpers/libs/LibExecutionConstraint.sol

Lines changed: 0 additions & 87 deletions
This file was deleted.

solidity/test/CallProxy.t.sol

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,12 @@ contract CallProxyTest is Test {
6464
assertEq(rt, abi.encode(returnData));
6565
assertEq(success, true);
6666
}
67+
68+
function test_emptyEtherTransfer_fails() external {
69+
vm.deal(address(this), 1 ether);
70+
// Empty calldata causes sub(calldatasize(), 32) to underflow to 2^256-32,
71+
// triggering an impossibly large memory expansion that exhausts all gas.
72+
(bool success,) = address(c).call{ value: 1 ether }("");
73+
assertFalse(success);
74+
}
6775
}

0 commit comments

Comments
 (0)