foundry-yul
foundry-yul copied to clipboard
Cannot deploy yul (test failure)
If I clone the repo and run forge test -vvv, I get the following error:
ERROR forge::runner: setUp failed reason="YulDeployer could not deploy contract" contract=0x7fa9385be102ac3eac297483dd6233d62b3e1496
Digging into it and attempting to log the compiled bytecode, it appears that the bytecode is correct (0x6009600b5f3960095ff3fe5f35608052366080f3), but the create function returns an error. I'm uncertain as to why that's the case.
Any insight would be helpful.
add --evm-version=paris in the solc command can solve the problem. The create function only works for paris and before verison, due to some reasons..
string memory bashCommand = string.concat( 'cast abi-encode "f(bytes)" $(solc --evm-version=paris --strict-assembly yul/', string.concat(fileName, ".yul --bin | tail -1)") );