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

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.

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.


Thanks, I was just about to deploy on testnet!