Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot deploy yul (test failure) #6

Open
wwhchung opened this issue Nov 6, 2023 · 1 comment
Open

Cannot deploy yul (test failure) #6

wwhchung opened this issue Nov 6, 2023 · 1 comment

Comments

@wwhchung
Copy link

wwhchung commented Nov 6, 2023

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.

@yanhx
Copy link

yanhx commented May 7, 2024

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)")
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants