Merge pull request #107 from moonstream-to/fix-exception-when-no-constructor

Fix to bypass exception when no constructor
pull/115/head v0.7.0
Neeraj Kashyap 2023-08-09 13:24:31 -07:00 zatwierdzone przez GitHub
commit ef33c79ec2
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -23,7 +23,7 @@ for abi_item in CONTRACT_ABI:
CONTRACT_FUNCTIONS[abi_item["name"]] = abi_item
if abi_item["type"] == "constructor":
CONTRACT_FUNCTIONS["constructor"] = abi_item
if CONTRACT_FUNCTIONS["constructor"] is None:
if CONTRACT_FUNCTIONS.get("constructor", "") == "":
CONTRACT_FUNCTIONS["constructor"] = {{"inputs" : []}}
def init_web3(ipc_path: str) -> Web3: