Wrap voting in transaction