I want to be able to check if there is no current group transaction.
Is Global.group_id() == BytesZero(Int(32))
the right way to do it?
I want to be able to check if there is no current group transaction.
Is Global.group_id() == BytesZero(Int(32))
the right way to do it?
Be careful that a single transaction may be still use a non-zero group ID.
The best way is:
Global.group_size() == Int(1)
That being said, why are you trying to achieve the above?
Nowadays, I would recommend not doing it to allow composition of smart contract.
In addition, if your smart contract relies on it for some security reason, be careful that: