Fix wallet transaction serialisation.