Skip to content

Commit

Permalink
add approval teal prog 8 (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahangsu authored Sep 20, 2022
1 parent b6cee0c commit fb3e523
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions features/integration/applications.feature
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Feature: Applications
# Create application
# depends on the transient account, and also the application id.
# Use suggested params
And I build an application transaction with the transient account, the current application, suggested params, operation "create", approval-program "programs/box_app.teal", clear-program "programs/box_app.teal", global-bytes 0, global-ints 0, local-bytes 0, local-ints 0, app-args "", foreign-apps "", foreign-assets "", app-accounts "", extra-pages 0, boxes ""
And I build an application transaction with the transient account, the current application, suggested params, operation "create", approval-program "programs/box_app.teal", clear-program "programs/eight.teal", global-bytes 0, global-ints 0, local-bytes 0, local-ints 0, app-args "", foreign-apps "", foreign-assets "", app-accounts "", extra-pages 0, boxes ""
# If error is an empty string, there should be no error.
And I sign and submit the transaction, saving the txid. If there is an error it is "".
And I wait for the transaction to be confirmed.
Expand Down Expand Up @@ -142,7 +142,7 @@ Feature: Applications
@applications.boxes
Scenario: Exercise indexer after a slew of box operations
Given I create a new transient account and fund it with 10000000000 microalgos.
And I build an application transaction with the transient account, the current application, suggested params, operation "create", approval-program "programs/box_app.teal", clear-program "programs/box_app.teal", global-bytes 0, global-ints 0, local-bytes 0, local-ints 0, app-args "", foreign-apps "", foreign-assets "", app-accounts "", extra-pages 0, boxes ""
And I build an application transaction with the transient account, the current application, suggested params, operation "create", approval-program "programs/box_app.teal", clear-program "programs/eight.teal", global-bytes 0, global-ints 0, local-bytes 0, local-ints 0, app-args "", foreign-apps "", foreign-assets "", app-accounts "", extra-pages 0, boxes ""
And I sign and submit the transaction, saving the txid. If there is an error it is "".
And I wait for the transaction to be confirmed.
And I remember the new application ID.
Expand Down
1 change: 1 addition & 0 deletions features/integration/compile.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Feature: Compile
| teal | program |
| programs/one.teal | programs/one.teal.tok |
| programs/zero.teal | programs/zero.teal.tok |
| programs/eight.teal | programs/eight.teal.tok |
| programs/abi_method_call.teal | programs/abi_method_call.teal.tok |

@compile.sourcemap
Expand Down
2 changes: 2 additions & 0 deletions features/resources/programs/eight.teal
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#pragma version 8
int 8
1 change: 1 addition & 0 deletions features/resources/programs/eight.teal.tok
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�

0 comments on commit fb3e523

Please sign in to comment.