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

do not set contract code from transaction input #1712

Merged

Conversation

ayrat555
Copy link
Contributor

@ayrat555 ayrat555 commented Apr 8, 2019

fixes #1707

Motivation

Some contracts created by main transactions. Other contracts are created by internal transactions. Setting the contract code from the main transaction's input will set invalid code if the contract was created in the internal transaction.

Changelog

  • do not set contract code from transaction input

@ghost ghost assigned ayrat555 Apr 8, 2019
@ghost ghost added the in progress label Apr 8, 2019
@nervehammer
Copy link
Contributor

it works 💯

@ayrat555 ayrat555 requested review from goodsoft and zachdaniel April 8, 2019 11:09
@ayrat555 ayrat555 merged commit 8248806 into master Apr 8, 2019
@ghost ghost removed the in progress label Apr 8, 2019
@ayrat555 ayrat555 deleted the ab-do-not-set-contract-code-from-transaction-input branch April 8, 2019 14:23
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

Successfully merging this pull request may close these issues.

Incorrect contract creation code generated in latest changes.
4 participants