-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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: generate salt inside macro call to avoid contract id collision #1177
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent catch. I'm approving this, but we should have a test for this: a test that deploys the same contract twice and it checks for the different generated salts. This should prevent us from having this same incident in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great catch! Left some remarks...
Co-authored-by: hal3e <[email protected]>
Co-authored-by: hal3e <[email protected]>
#1181 tracking in this issue. |
This PR fixes an issue where two contracts would have the same contract id because the salt was not generated properly.