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

Change contract bytecode location to bytecode.hex #10

Closed
wants to merge 2 commits into from

Conversation

robmcl4
Copy link
Collaborator

@robmcl4 robmcl4 commented Dec 18, 2023

The included download script creates a contract.hex which contains the bytecode. This is nice, but Gigahorse already places the bytecode in bytecode.hex. Let's just use the one placed there by Gigahorse. Otherwise, it's annoying if that specific downloader script isn't used.

Copy link
Collaborator

@degrigis degrigis left a comment

Choose a reason for hiding this comment

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

Can you check first if bytecode.hex exists, and then contract.hex? So we keep compatibility with the old artifacts.

The included download script creates a `contract.hex` which
contains the bytecode. This is nice, but Gigahorse already places
the bytecode in `bytecode.hex`. Let's just use the one
placed there by Gigahorse. Otherwise, it's annoying if that specific
downloader script isn't used.
@robmcl4
Copy link
Collaborator Author

robmcl4 commented Dec 23, 2023

rebased onto main and broke out contract bytecode loading into separate function

@ruaronicola
Copy link
Collaborator

Addressed in commit 75cee2c (always rename bytecode.hex to contract.hex)

@ruaronicola ruaronicola closed this Jan 3, 2024
@ruaronicola ruaronicola deleted the change_hex_loc branch January 3, 2024 20:24
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.

3 participants