Update transaction.cpp