From ed8e3c964aa35a4541a298db3e2e1ef4f45efdbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hern=C3=A1n=20Di=20Pietro?= Date: Tue, 5 Oct 2021 13:31:54 -0300 Subject: [PATCH] Verifies group of 3 to raise computation budget to 2100 --- teal/pricekeeper.teal | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/teal/pricekeeper.teal b/teal/pricekeeper.teal index 197272ca2..fe87ee1b8 100644 --- a/teal/pricekeeper.teal +++ b/teal/pricekeeper.teal @@ -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