mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +00:00
Return what we internally consider the "txid" for epic transactions from the epic confirmSend to be consistent with all other coins confirmSend return value. This should fix the epic notes issue.
This commit is contained in:
parent
2f6b1278fe
commit
fa0c982274
1 changed files with 12 additions and 5 deletions
|
@ -833,10 +833,16 @@ class EpicCashWallet extends CoinServiceAPI {
|
|||
final txLogEntryFirst = txLogEntry[0];
|
||||
Logger.print("TX_LOG_ENTRY_IS $txLogEntryFirst");
|
||||
final wallet = await Hive.openBox<dynamic>(_walletId);
|
||||
final slateToAddresses = (await wallet.get("slate_to_address")) as Map?;
|
||||
slateToAddresses?[txLogEntryFirst['tx_slate_id']] = txData['addresss'];
|
||||
final slateToAddresses =
|
||||
(await wallet.get("slate_to_address")) as Map? ?? {};
|
||||
final slateId = txLogEntryFirst['tx_slate_id'] as String;
|
||||
slateToAddresses[slateId] = txData['addresss'];
|
||||
await wallet.put('slate_to_address', slateToAddresses);
|
||||
return txLogEntryFirst['tx_slate_id'] as String;
|
||||
final slatesToCommits = await getSlatesToCommits();
|
||||
String? commitId = slatesToCommits[slateId]?['commitId'] as String?;
|
||||
Logging.instance.log("sent commitId: $commitId", level: LogLevel.Info);
|
||||
return commitId!;
|
||||
// return txLogEntryFirst['tx_slate_id'] as String;
|
||||
}
|
||||
} catch (e, s) {
|
||||
Logging.instance.log("Error sending $e - $s", level: LogLevel.Error);
|
||||
|
@ -2155,8 +2161,9 @@ class EpicCashWallet extends CoinServiceAPI {
|
|||
as String? ??
|
||||
"";
|
||||
String? commitId = slatesToCommits[slateId]?['commitId'] as String?;
|
||||
Logging.instance
|
||||
.log("commitId: $commitId $slateId", level: LogLevel.Info);
|
||||
Logging.instance.log(
|
||||
"commitId: $commitId, slateId: $slateId, id: ${tx["id"]}",
|
||||
level: LogLevel.Info);
|
||||
|
||||
bool isCancelled = tx["tx_type"] == "TxSentCancelled" ||
|
||||
tx["tx_type"] == "TxReceivedCancelled";
|
||||
|
|
Loading…
Reference in a new issue