mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-09 18:25:47 +00:00
b05444a92c
1. Add `install_deposit_contract_test` command 2. Add `test_deposit_contract` command
17 lines
471 B
Python
17 lines
471 B
Python
import json
|
|
import os
|
|
|
|
DIR = os.path.dirname(__file__)
|
|
|
|
|
|
def get_deposit_contract_code():
|
|
file_path = os.path.join(DIR, './../../contracts/validator_registration.v.py')
|
|
deposit_contract_code = open(file_path).read()
|
|
return deposit_contract_code
|
|
|
|
|
|
def get_deposit_contract_json():
|
|
file_path = os.path.join(DIR, './../../contracts/validator_registration.json')
|
|
deposit_contract_json = open(file_path).read()
|
|
return json.loads(deposit_contract_json)
|