Skip to content

Commit

Permalink
Change contract bytecode location to bytecode.hex
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
robmcl4 committed Dec 18, 2023
1 parent 4475f51 commit 5bdaf27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion greed/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
class Project(object):
def __init__(self, target_dir: str):
# Load the contract code
with open(f"{target_dir}/contract.hex", "rb") as contract_file:
with open(f"{target_dir}/bytecode.hex", "rb") as contract_file:
self.code = contract_file.read()

self.factory = Factory(project=self)
Expand Down

0 comments on commit 5bdaf27

Please sign in to comment.