missed firo amount

This commit is contained in:
julian 2023-04-11 11:20:57 -06:00
parent 347c69339c
commit e72f2018d0

View file

@ -704,6 +704,12 @@ Future<dynamic> isolateCreateJoinSplitTransaction(
final txId = extTx.getId(); final txId = extTx.getId();
Logging.instance.log("txid $txId", level: LogLevel.Info); Logging.instance.log("txid $txId", level: LogLevel.Info);
Logging.instance.log("txHex: $txHex", level: LogLevel.Info); Logging.instance.log("txHex: $txHex", level: LogLevel.Info);
final amountAmount = Amount(
rawValue: BigInt.from(amount),
fractionDigits: coin.decimals,
);
return { return {
"txid": txId, "txid": txId,
"txHex": txHex, "txHex": txHex,
@ -720,11 +726,8 @@ Future<dynamic> isolateCreateJoinSplitTransaction(
"height": locktime, "height": locktime,
"txType": "Sent", "txType": "Sent",
"confirmed_status": false, "confirmed_status": false,
"amount": Amount( "amount": amountAmount.decimal.toDouble(),
rawValue: BigInt.from(amount), "recipientAmt": amountAmount,
fractionDigits: coin.decimals,
).decimal.toDouble(),
"recipientAmt": amount,
"address": address, "address": address,
"timestamp": DateTime.now().millisecondsSinceEpoch ~/ 1000, "timestamp": DateTime.now().millisecondsSinceEpoch ~/ 1000,
"subType": "join", "subType": "join",