wrap receipt updates in transaction