Skip to content

Commit

Permalink
Merge pull request #1253 from CityOfZion/CU-86dtg2t0d
Browse files Browse the repository at this point in the history
public decorator signature is misleading
  • Loading branch information
meevee98 authored May 24, 2024
2 parents 1d1fbe5 + 704d68b commit fee3716
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion boa3/builtin/compile_time/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def CreateNewEvent(arguments: list[tuple[str, type]] = [], event_name: str = '')


@deprecated(details='This module is deprecated. Use boa3.sc.compiletime instead')
def public(name: str = None, safe: bool = True, *args, **kwargs):
def public(name: str = None, safe: bool = False, *args, **kwargs):
"""
This decorator identifies which methods should be included in the abi file. Adding this decorator to a function
means it could be called externally.
Expand Down
2 changes: 1 addition & 1 deletion boa3/sc/compiletime/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from typing import Any


def public(name: str = None, safe: bool = True, *args, **kwargs):
def public(name: str = None, safe: bool = False, *args, **kwargs):
"""
This decorator identifies which methods should be included in the abi file. Adding this decorator to a function
means it could be called externally.
Expand Down

0 comments on commit fee3716

Please sign in to comment.