Skip to content

Commit

Permalink
Merge pull request #564 from algorandfoundation/fix/dont_push_tmpls
Browse files Browse the repository at this point in the history
fix: don't push tmpls at start of program
  • Loading branch information
joe-p authored Oct 24, 2024
2 parents 4f9fd7d + f97d4e4 commit ec11697
Show file tree
Hide file tree
Showing 19 changed files with 27,524 additions and 27,661 deletions.
18 changes: 7 additions & 11 deletions examples/lsig_with_app/artifacts/OptInLsig.lsig.teal
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
#pragma version 10
//#pragma mode logicsig
intcblock TMPL_APP_ID 0 1
intcblock 0 1 TMPL_APP_ID

// This TEAL was generated by TEALScript v0.105.2
// https://github.com/algorandfoundation/TEALScript


// The following lines of TEAL are used to initialize template variables in scratch slots
intc 0 // TMPL_APP_ID

// The address of this logic signature is QUL5U6CEH7Q5HGEG2A2LNHNT5EKMYKLUFDDMTW6HWHLSGTNEF456R7BIIM
// The address of this logic signature is FKZPLQTSDQKAIA2GQUXW2QPXIN7P5VBZU7H67MP5WZSBLJNMXMMALMPEME

b *route_logic

// logic()void
*route_logic:
// execute logic()void
callsub logic
intc 2 // 1
intc 1 // 1
return

// logic(): void
Expand Down Expand Up @@ -51,7 +47,7 @@ logic:

// verify assetAmount
txn AssetAmount
intc 1 // 0
intc 0 // 0
==

// transaction verification failed: {"txn":"this.txn","field":"assetAmount","expected":"0"}
Expand All @@ -67,7 +63,7 @@ logic:

// verify fee
txn Fee
intc 1 // 0
intc 0 // 0
==

// transaction verification failed: {"txn":"this.txn","field":"fee","expected":"0"}
Expand All @@ -92,15 +88,15 @@ logic:
// examples/lsig_with_app/lsig_with_app.algo.ts:26
// appCall = this.txnGroup[this.txn.groupIndex + 1]
txn GroupIndex
intc 2 // 1
intc 1 // 1
+
frame_bury 0 // appCall: txn

// examples/lsig_with_app/lsig_with_app.algo.ts:29
// assert(appCall.applicationID === this.APP_ID)
frame_dig 0 // appCall: txn
gtxns ApplicationID
intc 0 // TMPL_APP_ID
intc 2 // TMPL_APP_ID
==
assert

Expand Down
Loading

0 comments on commit ec11697

Please sign in to comment.