mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
CW-766 fix coin freezing (#1751)
* fix coin freezing * fix frozen balance * update monero_c hash * update monero_c hash (after merge) * fix test E make it ready * revert local change * throw error on wow as well * experiment with view model code * move view model into di.dart
This commit is contained in:
parent
9706243c81
commit
87178b2a54
8 changed files with 92 additions and 28 deletions
|
@ -6,13 +6,16 @@ import 'package:cw_wownero/api/exceptions/creation_transaction_exception.dart';
|
|||
import 'package:cw_wownero/api/wallet.dart';
|
||||
import 'package:cw_wownero/api/wownero_output.dart';
|
||||
import 'package:cw_wownero/api/structs/pending_transaction.dart';
|
||||
import 'package:cw_wownero/exceptions/wownero_transaction_creation_exception.dart';
|
||||
import 'package:ffi/ffi.dart';
|
||||
import 'package:monero/wownero.dart' as wownero;
|
||||
import 'package:monero/src/generated_bindings_wownero.g.dart' as wownero_gen;
|
||||
|
||||
|
||||
String getTxKey(String txId) {
|
||||
return wownero.Wallet_getTxKey(wptr!, txid: txId);
|
||||
final ret = wownero.Wallet_getTxKey(wptr!, txid: txId);
|
||||
wownero.Wallet_status(wptr!);
|
||||
return ret;
|
||||
}
|
||||
|
||||
wownero.TransactionHistory? txhistory;
|
||||
|
@ -86,7 +89,10 @@ Future<PendingTransactionDescription> createTransactionSync(
|
|||
final amt = amount == null ? 0 : wownero.Wallet_amountFromString(amount);
|
||||
|
||||
final address_ = address.toNativeUtf8();
|
||||
final paymentId_ = paymentId.toNativeUtf8();
|
||||
final paymentId_ = paymentId.toNativeUtf8();
|
||||
if (preferredInputs.isEmpty) {
|
||||
throw WowneroTransactionCreationException("No inputs provided, transaction cannot be constructed");
|
||||
}
|
||||
final preferredInputs_ = preferredInputs.join(wownero.defaultSeparatorStr).toNativeUtf8();
|
||||
|
||||
final waddr = wptr!.address;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue