Skip to content

Commit

Permalink
fix: add default value for optional parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroferreira1 committed Mar 28, 2024
1 parent 50e4f49 commit e94c92e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gateways/node_api_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def get_nc_state(
)

def get_nc_history(
self, id: str, after: Optional[str], count: Optional[int]
self, id: str, after: Optional[str] = None, count: Optional[int] = None
) -> Optional[dict]:
"""Get history of a nano contract."""
return self.hathor_core_client.get(
Expand Down
2 changes: 1 addition & 1 deletion usecases/node_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def get_nc_state(
return self.node_api_gateway.get_nc_state(id, fields, balances, calls)

def get_nc_history(
self, id: str, after: Optional[str], count: Optional[int]
self, id: str, after: Optional[str] = None, count: Optional[int] = None
) -> Optional[dict]:
return self.node_api_gateway.get_nc_history(id, after, count)

Expand Down

0 comments on commit e94c92e

Please sign in to comment.