From 847eba09d34fb4fe27ac0e994276fee4fd8ed98d Mon Sep 17 00:00:00 2001 From: kladko <13399135+kladkogex@users.noreply.github.com> Date: Tue, 8 Jun 2021 19:34:33 +0300 Subject: [PATCH] First release --- endpoints.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/endpoints.py b/endpoints.py index 713ede9..c1ab7d2 100644 --- a/endpoints.py +++ b/endpoints.py @@ -118,9 +118,10 @@ def endpoints_for_schain(schains_internal_contract, nodes_contract, schain_id): compose_endpoints(node_dict, endpoint_type='domain') nodes.append(node_dict) + schain = schains_internal_contract.functions.schains(schain_id).call() return { - 'schain': schains_internal_contract.functions.schains(schain_id).call(), - 'schain_id': schain_id.hex(), + 'schain': schain, + 'schain_id': schain_name_to_id(schain[0])[:15], 'nodes': nodes }