Verifies group of 3 to raise computation budget to 2100

This commit is contained in:
Hernán Di Pietro 2021-10-05 13:31:54 -03:00
parent 8e3228a936
commit ed8e3c964a
1 changed files with 14 additions and 1 deletions

View File

@ -82,10 +82,23 @@ app_global_put
b success
// -----------------------------------------------------
// Receive price message
// Handle app call
// -----------------------------------------------------
handle_call:
// Group size must be 3 to raise computational allowance to 2100
global GroupSize
int 3
==
assert
// if this is one of dummy transactions(0 or 1), exit with success
txn GroupIndex
int 2
!=
bnz success
// Verify if sender is the data validator
txn Sender