requireSingleCommand

Ensures that a transaction has only one command that is of the given type, otherwise throws an exception.