Transaction: fix incorrect outIndex type