-
Notifications
You must be signed in to change notification settings - Fork 49
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
Fix CREATE2 salt interpolation in multi-chain deployment script #750
Comments
Interesting. I haven't run the script in V2 Periphery just yet. |
There was an issue with our deployment script. See PR: #753. Bash is very smart to interpret string as executable command. Expanding string using multi line comments doesn't work as intended sometimes. Source https://google.github.io/styleguide/shellguide.html#arrays. For future, we should adhere to the best practices from Google styleguide. |
Update on v2-peripheryIt was not even working in v2-periphery correctly. The create2Salt was interpreted as ''''ChainID' 11155111, Version '1.1.0''''. Fixed in sablier-labs/v2-periphery#240. |
Nice finding with the Google styleguide! |
Here:
v2-core/shell/deploy-multi-chain.sh
Line 178 in 79aa953
I've tried all of the following approaches. None worked:
\"
'"ChainID' 43114, Version '1.1.1"'
\'
'\'\''ChainID' 43114, Version '1.1.1\'\'''
'
''\''ChainID' 43114, Version '1.1.1'\'''
'
What should be generated is this:
Or this:
Note: this is best debugged by adding the
-x
flag here:$ set -euxo pipefail
The text was updated successfully, but these errors were encountered: