Fix Peya base asset in wallet C wrapper
This commit is contained in:
@@ -1463,14 +1463,14 @@ bool PEYA_Wallet_setProxy(void* wallet_ptr, const char* address) {
|
|||||||
uint64_t PEYA_Wallet_balance(void* wallet_ptr, uint32_t accountIndex) {
|
uint64_t PEYA_Wallet_balance(void* wallet_ptr, uint32_t accountIndex) {
|
||||||
DEBUG_START()
|
DEBUG_START()
|
||||||
Monero::Wallet *wallet = reinterpret_cast<Monero::Wallet*>(wallet_ptr);
|
Monero::Wallet *wallet = reinterpret_cast<Monero::Wallet*>(wallet_ptr);
|
||||||
return wallet->balance("SAL1", accountIndex);
|
return wallet->balance("PEY", accountIndex);
|
||||||
DEBUG_END()
|
DEBUG_END()
|
||||||
}
|
}
|
||||||
|
|
||||||
uint64_t PEYA_Wallet_unlockedBalance(void* wallet_ptr, uint32_t accountIndex) {
|
uint64_t PEYA_Wallet_unlockedBalance(void* wallet_ptr, uint32_t accountIndex) {
|
||||||
DEBUG_START()
|
DEBUG_START()
|
||||||
Monero::Wallet *wallet = reinterpret_cast<Monero::Wallet*>(wallet_ptr);
|
Monero::Wallet *wallet = reinterpret_cast<Monero::Wallet*>(wallet_ptr);
|
||||||
return wallet->unlockedBalance("SAL1", accountIndex);
|
return wallet->unlockedBalance("PEY", accountIndex);
|
||||||
DEBUG_END()
|
DEBUG_END()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1838,7 +1838,7 @@ void* PEYA_Wallet_createTransactionMultDest(void* wallet_ptr, const char* dst_ad
|
|||||||
return wallet->createTransactionMultDest(Monero::TRANSFER,
|
return wallet->createTransactionMultDest(Monero::TRANSFER,
|
||||||
dst_addr, std::string(payment_id),
|
dst_addr, std::string(payment_id),
|
||||||
optAmount, mixin_count,
|
optAmount, mixin_count,
|
||||||
"SAL1", false /* is_return */,
|
"PEY", false /* is_return */,
|
||||||
PendingTransaction_Priority_fromInt(pendingTransactionPriority),
|
PendingTransaction_Priority_fromInt(pendingTransactionPriority),
|
||||||
subaddr_account,
|
subaddr_account,
|
||||||
subaddr_indices
|
subaddr_indices
|
||||||
@@ -1876,7 +1876,7 @@ void* PEYA_Wallet_createTransaction(void* wallet_ptr, const char* dst_addr, cons
|
|||||||
std::set<std::string> preferred_inputs = splitString(std::string(preferredInputs), std::string(separator));
|
std::set<std::string> preferred_inputs = splitString(std::string(preferredInputs), std::string(separator));
|
||||||
return wallet->createTransaction(std::string(dst_addr), std::string(payment_id),
|
return wallet->createTransaction(std::string(dst_addr), std::string(payment_id),
|
||||||
optAmount, mixin_count,
|
optAmount, mixin_count,
|
||||||
"SAL1", false /* is_return */,
|
"PEY", false /* is_return */,
|
||||||
PendingTransaction_Priority_fromInt(pendingTransactionPriority),
|
PendingTransaction_Priority_fromInt(pendingTransactionPriority),
|
||||||
subaddr_account, subaddr_indices);
|
subaddr_account, subaddr_indices);
|
||||||
DEBUG_END()
|
DEBUG_END()
|
||||||
|
|||||||
Reference in New Issue
Block a user