Skip to content

Commit

Permalink
test: set utf8 encoding on open
Browse files Browse the repository at this point in the history
  • Loading branch information
Bushstar committed Jun 9, 2023
1 parent 98e647b commit c18cf28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/functional/test_framework/evm_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(self, code: str, file_name: str, contract_name: str):

@staticmethod
def from_file(file_name: str, contract_name: str):
with open(f"{os.path.dirname(__file__)}/{EVMContract._path_prefix}/{file_name}", "r") as file:
with open(f"{os.path.dirname(__file__)}/{EVMContract._path_prefix}/{file_name}", "r", encoding="utf8") as file:
return EVMContract(file.read(), file_name, contract_name)

def compile(self) -> (List[Dict], str):
Expand Down

0 comments on commit c18cf28

Please sign in to comment.