mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-11-23 08:35:12 +01:00
wip converting camelcase to underscores
This commit is contained in:
+13
-13
@@ -80,25 +80,25 @@ int main(int argc, const char* argv[]) {
|
||||
MINFO(txs[i]->serialize());
|
||||
}
|
||||
|
||||
// shared_ptr<monero_transfer_request> transferRequest = shared_ptr<monero_transfer_request>(new monero_transfer_request());
|
||||
// transferRequest->accountIndex = 0;
|
||||
// shared_ptr<monero_tx_request> txRequest = shared_ptr<monero_tx_request>(new monero_tx_request());
|
||||
// txRequest->isConfirmed = true;
|
||||
// transferRequest->txRequest = txRequest;
|
||||
// //txRequest->transferRequest = transferRequest;
|
||||
// vector<shared_ptr<monero_transfer>> transfers = wallet->get_transfers(*transferRequest);
|
||||
// shared_ptr<monero_transfer_request> transfer_request = shared_ptr<monero_transfer_request>(new monero_transfer_request());
|
||||
// transfer_request->account_index = 0;
|
||||
// shared_ptr<monero_tx_request> tx_request = shared_ptr<monero_tx_request>(new monero_tx_request());
|
||||
// tx_request->is_confirmed = true;
|
||||
// transfer_request->tx_request = tx_request;
|
||||
// //tx_request->transfer_request = transfer_request;
|
||||
// vector<shared_ptr<monero_transfer>> transfers = wallet->get_transfers(*transfer_request);
|
||||
// if (transfers.empty()) throw runtime_error("Transfers should not be empty");
|
||||
// for (const shared_ptr<monero_transfer>& transfer : transfers) {
|
||||
// if (*transfer->accountIndex != 0) throw runtime_error("Account should be 0");
|
||||
// if (!*transfer->tx->isConfirmed) throw runtime_error("Transfer should be confirmed");
|
||||
// if (*transfer->account_index != 0) throw runtime_error("Account should be 0");
|
||||
// if (!*transfer->tx->is_confirmed) throw runtime_error("Transfer should be confirmed");
|
||||
// }
|
||||
|
||||
// shared_ptr<monero_tx_request> txRequest = shared_ptr<monero_tx_request>(new monero_tx_request());
|
||||
// txRequest->isConfirmed = true;
|
||||
// vector<shared_ptr<monero_tx_wallet>> txs = wallet->get_txs(*txRequest);
|
||||
// shared_ptr<monero_tx_request> tx_request = shared_ptr<monero_tx_request>(new monero_tx_request());
|
||||
// tx_request->is_confirmed = true;
|
||||
// vector<shared_ptr<monero_tx_wallet>> txs = wallet->get_txs(*tx_request);
|
||||
// if (txs.empty()) throw runtime_error("Txs should not be empty");
|
||||
// for (const shared_ptr<monero_tx_wallet>& tx : txs) {
|
||||
// if (!*tx->isConfirmed) throw runtime_error("Tx should be confirmed");
|
||||
// if (!*tx->is_confirmed) throw runtime_error("Tx should be confirmed");
|
||||
// }
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user