Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: don't push tmpls at start of program #564

Merged
merged 2 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading