Skip to content

Commit

Permalink
Fixed contract name fetching in the wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
u-hubar committed Jan 10, 2024
1 parent b628ee6 commit 9b4b134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dkg/providers/blockchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def make_json_rpc_request(self, endpoint: str, args: dict[str, Any] = {}) -> Any
def handle_updated_contract(func):
@wraps(func)
def wrapper(self, *args, **kwargs):
contract_name = kwargs.get("contract_name") or (args[0] if args else None)
contract_name = kwargs.get("contract") or (args[0] if args else None)

try:
return func(self, *args, **kwargs)
Expand Down

0 comments on commit 9b4b134

Please sign in to comment.