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

save contract source code #361

Merged
merged 1 commit into from
Jul 8, 2024
Merged

Conversation

kroggen
Copy link
Member

@kroggen kroggen commented Jul 7, 2024

Save the source code of the deployed contract (both via transaction and via contract.deploy()) on the contract state, starting on hardfork V4

The previous method for V4 was to just compile the source code from the transaction and store only the bytecode

Now both bytecode and source code would be stored

This can be useful in the future if we want to use a Lua interpreter instead of LuaJIT (for some contracts)

@kroggen kroggen requested a review from hayarobi July 7, 2024 20:02
Copy link
Member

@hayarobi hayarobi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@kroggen kroggen merged commit 2b08d91 into topic/hardfork-v4 Jul 8, 2024
3 checks passed
@kroggen kroggen deleted the topic/save-source-code branch July 8, 2024 16:44
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.

None yet

2 participants