Skip to content

Commit

Permalink
SKALE-1802 remove get_required_balance, fx json load
Browse files Browse the repository at this point in the history
dmytrotkk committed Nov 28, 2019
1 parent 09c6d80 commit 468f526
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion tools/helper.py
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@

def read_json(path, mode='r'):
with open(path, mode=mode, encoding='utf-8') as data_file:
return json.loads(data_file.read())
return json.load(data_file)


def write_json(path, content):
4 changes: 0 additions & 4 deletions tools/wallet_utils.py
Original file line number Diff line number Diff line change
@@ -46,7 +46,3 @@ def check_required_balance(skale): # todo: move to the skale.py
balances = wallet_with_balance(skale)
return int(balances['eth_balance_wei']) >= DEPOSIT_AMOUNT_ETH_WEI and int(balances[
'skale_balance_wei']) >= DEPOSIT_AMOUNT_SKL_WEI


def get_required_balance(): # todo: move to the skale.py, request valuest from skale-manager
return {'eth_balance': DEPOSIT_AMOUNT_ETH, 'skale_balance': DEPOSIT_AMOUNT_SKL}

0 comments on commit 468f526

Please sign in to comment.