From 65efba6116e08c486bd0c0dadd7870a327201886 Mon Sep 17 00:00:00 2001 From: Taehwa Kim Date: Mon, 27 Feb 2023 17:48:14 +0900 Subject: [PATCH] fix: some yul commands cause compile error (iszero, eq, etc) --- 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 74e3e54..5327737 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 | tail -1)")); string[] memory inputs = new string[](3); inputs[0] = "bash";