mirror of
https://github.com/overte-org/overte.git
synced 2025-04-26 02:16:26 +02:00
PR feedback
This commit is contained in:
parent
a726b01263
commit
f1ab91edd1
3 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
//
|
//
|
||||||
// CommerceLogging.cpp
|
// CommerceLogging.cpp
|
||||||
// interface/interface/src/commerce
|
// interface/src/commerce
|
||||||
//
|
//
|
||||||
// Created by Howard Stearns on 8/9/17.
|
// Created by Howard Stearns on 8/9/17.
|
||||||
// Copyright 2017 High Fidelity, Inc.
|
// Copyright 2017 High Fidelity, Inc.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//
|
//
|
||||||
// CommerceLogging.h
|
// CommerceLogging.h
|
||||||
// interface/src
|
// interface/src/commerce
|
||||||
//
|
//
|
||||||
// Created by Howard Stearns on 8/9/17.
|
// Created by Howard Stearns on 8/9/17.
|
||||||
// Copyright 2017 High Fidelity, Inc.
|
// Copyright 2017 High Fidelity, Inc.
|
||||||
|
|
|
@ -23,8 +23,8 @@ bool Ledger::buy(const QString& hfc_key, int cost, const QString& asset_id, cons
|
||||||
transaction["asset_id"] = asset_id;
|
transaction["asset_id"] = asset_id;
|
||||||
transaction["inventory_key"] = inventory_key;
|
transaction["inventory_key"] = inventory_key;
|
||||||
transaction["inventory_buyer_username"] = buyerUsername;
|
transaction["inventory_buyer_username"] = buyerUsername;
|
||||||
QJsonDocument transctionDoc{ transaction };
|
QJsonDocument transactionDoc{ transaction };
|
||||||
QString transactionString = transctionDoc.toJson(QJsonDocument::Compact);
|
QString transactionString = transactionDoc.toJson(QJsonDocument::Compact);
|
||||||
|
|
||||||
auto wallet = DependencyManager::get<Wallet>();
|
auto wallet = DependencyManager::get<Wallet>();
|
||||||
QString signature = wallet->signWithKey(transactionString, hfc_key);
|
QString signature = wallet->signWithKey(transactionString, hfc_key);
|
||||||
|
|
Loading…
Reference in a new issue