pub fn with_tx<T>( tx_id: &str, f: impl FnOnce(&PendingTxn) -> BuiltinResult<T>, ) -> BuiltinResult<T>