Fix HTTP send dart errors

This commit is contained in:
Likho 2022-09-01 17:02:22 -05:00
parent b076e76881
commit 9d68ffe6b2
2 changed files with 4 additions and 4 deletions

@ -1 +1 @@
Subproject commit 5ae20e71c0bb85952866fdd6aa7572438517943e
Subproject commit 516fa886ab5f94bbc32d29e50711bdccc9cbd154

View file

@ -807,9 +807,7 @@ class EpicCashWallet extends CoinServiceAPI {
throw BadEpicHttpAddressException(message: sendTx);
}
if (!(receiverAddress.startsWith("http://") || receiverAddress.startsWith("https://"))) {
await putSendToAddresses(sendTx);
}
await putSendToAddresses(sendTx);
Logging.instance.log("CONFIRM_RESULT_IS $sendTx", level: LogLevel.Info);
@ -833,6 +831,8 @@ class EpicCashWallet extends CoinServiceAPI {
final txCreateResult = decodeData[0];
// //TODO: second problem
final transaction = json.decode(txCreateResult as String);
Logger.print("TX_IS $transaction");
final tx = transaction[0];
final txLogEntry = json.decode(tx as String);
final txLogEntryFirst = txLogEntry[0];