This forum is a read-only archive. Posting, replying and signing in are disabled.

Does the value of Global.group_size() start at zero?

ncoin

I’m writing a smart contract in PyTeal and I’d like to know if Global.group_size() starts at 0. So if Global.group_size() == Int(1) would that check if there were 2 txns in the group?

Sorry for the dumb question.

✔ Solved by Ben in post #2
Ben

Hi ncoin,

In the case of a group transaction with 2 transactions, the group_size() would report 2.

You should try this yourself with some experimentation though.

Ben

✔ Solution