diff --git a/hathor/nanocontracts/resources/blueprint.py b/hathor/nanocontracts/resources/blueprint.py index 45c3222de..5a2e284a2 100644 --- a/hathor/nanocontracts/resources/blueprint.py +++ b/hathor/nanocontracts/resources/blueprint.py @@ -167,7 +167,6 @@ def render_GET(self, request: 'Request') -> bytes: name=blueprint_class.__name__, attributes=attributes, public_methods=public_methods, - private_methods=view_methods, # DEPRECATED view_methods=view_methods, docstring=inspect.getdoc(blueprint_class), ) @@ -194,7 +193,6 @@ class BlueprintInfoResponse(Response): name: str attributes: dict[str, str] public_methods: dict[str, MethodInfo] - private_methods: dict[str, MethodInfo] # DEPRECATED view_methods: dict[str, MethodInfo] docstring: str | None diff --git a/hathor_tests/resources/nanocontracts/test_blueprint.py b/hathor_tests/resources/nanocontracts/test_blueprint.py index 99b1c346c..d685e75a9 100644 --- a/hathor_tests/resources/nanocontracts/test_blueprint.py +++ b/hathor_tests/resources/nanocontracts/test_blueprint.py @@ -146,7 +146,7 @@ def test_success(self) -> Generator[Deferred[Any], Any, None]: 'docstring': None, }, } - self.assertEqual(data['private_methods'], expected_data) + self.assertEqual(data['view_methods'], expected_data) class BuiltinBlueprintInfoTest(BaseBlueprintInfoTest):