fix libwallet api test after api change
This commit is contained in:
parent
a46c1eed8c
commit
d04633121b
@ -580,9 +580,9 @@ TEST_F(WalletTest1, WalletTransaction)
|
||||
PAYMENT_ID_EMPTY,
|
||||
AMOUNT_10XMR,
|
||||
MIXIN_COUNT,
|
||||
Monero::PendingTransaction::Priority_Medium,
|
||||
0,
|
||||
std::set<uint32_t>{},
|
||||
Monero::PendingTransaction::Priority_Medium);
|
||||
std::set<uint32_t>{});
|
||||
ASSERT_TRUE(transaction->status() == Monero::PendingTransaction::Status_Ok);
|
||||
wallet1->refresh();
|
||||
|
||||
@ -621,7 +621,7 @@ TEST_F(WalletTest1, WalletTransactionWithMixin)
|
||||
std::cerr << "Transaction mixin count: " << mixin << std::endl;
|
||||
|
||||
Monero::PendingTransaction * transaction = wallet1->createTransaction(
|
||||
recepient_address, payment_id, AMOUNT_5XMR, mixin, 0, std::set<uint32_t>{});
|
||||
recepient_address, payment_id, AMOUNT_5XMR, mixin, Monero::PendingTransaction::Priority_Medium, 0, std::set<uint32_t>{});
|
||||
|
||||
std::cerr << "Transaction status: " << transaction->status() << std::endl;
|
||||
std::cerr << "Transaction fee: " << Monero::Wallet::displayAmount(transaction->fee()) << std::endl;
|
||||
@ -663,7 +663,7 @@ TEST_F(WalletTest1, WalletTransactionWithPriority)
|
||||
std::cerr << "Transaction priority: " << *it << std::endl;
|
||||
|
||||
Monero::PendingTransaction * transaction = wallet1->createTransaction(
|
||||
recepient_address, payment_id, AMOUNT_5XMR, mixin, 0, std::set<uint32_t>{}, *it);
|
||||
recepient_address, payment_id, AMOUNT_5XMR, mixin, *it, 0, std::set<uint32_t>{});
|
||||
std::cerr << "Transaction status: " << transaction->status() << std::endl;
|
||||
std::cerr << "Transaction fee: " << Monero::Wallet::displayAmount(transaction->fee()) << std::endl;
|
||||
std::cerr << "Transaction error: " << transaction->errorString() << std::endl;
|
||||
@ -719,7 +719,7 @@ TEST_F(WalletTest1, WalletTransactionAndHistory)
|
||||
|
||||
Monero::PendingTransaction * tx = wallet_src->createTransaction(wallet4_addr,
|
||||
PAYMENT_ID_EMPTY,
|
||||
AMOUNT_10XMR * 5, 1, 0, std::set<uint32_t>{});
|
||||
AMOUNT_10XMR * 5, 1, Monero::PendingTransaction::Priority_Medium, 0, std::set<uint32_t>{});
|
||||
|
||||
ASSERT_TRUE(tx->status() == Monero::PendingTransaction::Status_Ok);
|
||||
ASSERT_TRUE(tx->commit());
|
||||
@ -761,7 +761,7 @@ TEST_F(WalletTest1, WalletTransactionWithPaymentId)
|
||||
|
||||
Monero::PendingTransaction * tx = wallet_src->createTransaction(wallet4_addr,
|
||||
payment_id,
|
||||
AMOUNT_1XMR, 1, 0, std::set<uint32_t>{});
|
||||
AMOUNT_1XMR, 1, Monero::PendingTransaction::Priority_Medium, 0, std::set<uint32_t>{});
|
||||
|
||||
ASSERT_TRUE(tx->status() == Monero::PendingTransaction::Status_Ok);
|
||||
ASSERT_TRUE(tx->commit());
|
||||
@ -934,7 +934,7 @@ TEST_F(WalletTest2, WalletCallbackSent)
|
||||
|
||||
Monero::PendingTransaction * tx = wallet_src->createTransaction(wallet_dst->mainAddress(),
|
||||
PAYMENT_ID_EMPTY,
|
||||
amount, 1, 0, std::set<uint32_t>{});
|
||||
amount, 1, Monero::PendingTransaction::Priority_Medium, 0, std::set<uint32_t>{});
|
||||
std::cout << "** Committing transaction: " << Monero::Wallet::displayAmount(tx->amount())
|
||||
<< " with fee: " << Monero::Wallet::displayAmount(tx->fee());
|
||||
|
||||
@ -975,7 +975,7 @@ TEST_F(WalletTest2, WalletCallbackReceived)
|
||||
std::cout << "** Sending " << Monero::Wallet::displayAmount(amount) << " to " << wallet_dst->mainAddress();
|
||||
Monero::PendingTransaction * tx = wallet_src->createTransaction(wallet_dst->mainAddress(),
|
||||
PAYMENT_ID_EMPTY,
|
||||
amount, 1, 0, std::set<uint32_t>{});
|
||||
amount, 1, Monero::PendingTransaction::Priority_Medium, 0, std::set<uint32_t>{});
|
||||
|
||||
std::cout << "** Committing transaction: " << Monero::Wallet::displayAmount(tx->amount())
|
||||
<< " with fee: " << Monero::Wallet::displayAmount(tx->fee());
|
||||
|
Loading…
Reference in New Issue
Block a user