Change this to `set_transaction_state`