From cccafd30e95e8eef816e9f4e61730607ce6a13bc Mon Sep 17 00:00:00 2001 From: pawurb Date: Wed, 27 Dec 2023 10:52:51 +0100 Subject: [PATCH] Use Yul optimizer --- test/lib/YulDeployer.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lib/YulDeployer.sol b/test/lib/YulDeployer.sol index 1e6e589..67902ed 100644 --- a/test/lib/YulDeployer.sol +++ b/test/lib/YulDeployer.sol @@ -9,7 +9,7 @@ contract YulDeployer is Test { ///@param fileName - The file name of the Yul contract. For example, the file name for "Example.yul" is "Example" ///@return deployedAddress - The address that the contract was deployed to function deployContract(string memory fileName) public returns (address) { - string memory bashCommand = string.concat('cast abi-encode "f(bytes)" $(solc --yul yul/', string.concat(fileName, ".yul --bin | tail -1)")); + string memory bashCommand = string.concat('cast abi-encode "f(bytes)" $(solc --strict-assembly yul/', string.concat(fileName, ".yul --bin --optimize | tail -1)")); string[] memory inputs = new string[](3); inputs[0] = "bash";