kopia lustrzana https://github.com/bugout-dev/moonworm
Merge pull request #107 from moonstream-to/fix-exception-when-no-constructor
Fix to bypass exception when no constructorpull/115/head v0.7.0
commit
ef33c79ec2
|
@ -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:
|
||||
|
|
Ładowanie…
Reference in New Issue