pull/876/head
Andrey 2023-08-30 05:17:30 +03:00
rodzic 6b9fd67d6b
commit 1ddf96b258
2 zmienionych plików z 8 dodań i 12 usunięć

Wyświetl plik

@ -850,17 +850,6 @@ def get_list_of_support_interfaces(
"""
try:
web3_client = connect(blockchain_type, user_token=user_token)
# GET LAST BLOCK
print("web3_client", web3_client.eth.get_block("latest"))
contract = web3_client.eth.contract(
address=Web3.toChecksumAddress(address),
abi=supportsInterface_abi,
)
_, _, is_contract = check_if_smart_contract(
blockchain_type=blockchain_type, address=address, user_token=user_token
)
@ -868,6 +857,13 @@ def get_list_of_support_interfaces(
if not is_contract:
raise AddressNotSmartContractException(f"Address not are smart contract")
web3_client = connect(blockchain_type, user_token=user_token)
contract = web3_client.eth.contract(
address=Web3.toChecksumAddress(address),
abi=supportsInterface_abi,
)
result = {}
if blockchain_type in multicall_contracts:

Wyświetl plik

@ -650,7 +650,7 @@ async def list_subscription_types() -> data.SubscriptionTypesListResponse:
)
async def get_subscription_jobs_handler(
request: Request,
subscription_id: str,
subscription_id: str = Path(...),
) -> Any:
token = request.state.token
user = request.state.user