Skip to content

Commit

Permalink
added Remote Code tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
CiottiGiorgio committed Oct 15, 2024
1 parent 823dc11 commit bf53343
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
)


# example: LSIG_SELFPAYMENT
@logicsig
def self_payment() -> bool:
"""
Expand All @@ -27,3 +28,6 @@ def self_payment() -> bool:
and Txn.last_valid == TemplateVar[UInt64]("LAST_ROUND")
and Txn.lease == op.sha256(b"self-payment")
)


# example: LSIG_SELFPAYMENT
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from algopy.op import GTxn


# example: LSIG_SUBSIDIZEAPPCALL
@logicsig
def subsidize_app_call() -> bool:
"""
Expand All @@ -32,3 +33,6 @@ def subsidize_app_call() -> bool:
== TemplateVar[Application]("KNOWN_APP")
and GTxn.fee(Txn.group_index - 1) == 0
)


# example: LSIG_SUBSIDIZEAPPCALL

0 comments on commit bf53343

Please sign in to comment.