algoOptin: optin change @ gusc1a-ossdev-jsl5

This commit is contained in:
Josh Siegel 2022-06-23 19:43:21 +00:00 committed by jumpsiegel
parent a4e7afc1bb
commit c16e89036d
1 changed files with 2 additions and 2 deletions

View File

@ -978,8 +978,8 @@ def approve_token_bridge(seed_amt: int, tmpl_sig: TmplSig, devMode: bool):
@Subroutine(TealType.uint64)
def optin():
# Alias for readability
algo_seed = Gtxn[0]
optin = Gtxn[1]
algo_seed = Gtxn[Txn.group_index() - Int(1)]
optin = Txn
well_formed_optin = And(
# Check that we're paying it