-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
Describe the bug
In order to access contract data from the behaviours there is a get_contract_api_response
in a BaseBehaviour
. Currently it's incompatible with get_service_information
as it returns tuple and not a dict. Meaning that _check_consistency
check would fail asserting that value is not a dict.
open-autonomy/packages/valory/contracts/service_registry/contract.py
Lines 205 to 218 in 98daea9
@classmethod | |
def get_service_information( | |
cls, | |
ledger_api: LedgerApi, | |
contract_address: str, | |
token_id: int, | |
) -> ServiceInfo: | |
"""Retrieve service information""" | |
contract_interface = cls.get_instance( | |
ledger_api=ledger_api, | |
contract_address=contract_address, | |
) | |
return contract_interface.functions.getService(token_id).call() |
Metadata
Metadata
Assignees
Labels
No labels