Skip to content

Commit

Permalink
remove usage comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
duelingbenjos committed Dec 2, 2024
1 parent 5eb5282 commit 4587f12
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/contracting/storage/orm.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,26 +249,3 @@ def write_event(self, event_data):

def __call__(self, data):
self.write_event(data)


"""
Usage:
TransferEvent = LogEvent(
name="Transfer",
args={
"from": {"type": str, "idx": True},
"to": {"type": str, "idx": True},
"amount": {"type": (int, float, ContractingDecimal)}
},
)
@export
def transfer(self, from_address, to_address, amount):
# Perform the transfer logic
# ...
# Log the transfer event
TransferEvent({"from": from_address, "to": to_address, "amount": amount})
"""

0 comments on commit 4587f12

Please sign in to comment.