Merge pull request #663 from cypherstack/httpsend-error-fix

Fix HTTP send error
This commit is contained in:
julian-CStack 2023-09-08 07:28:28 -06:00 committed by GitHub
commit e26b3d1221
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -176,7 +176,7 @@ Future<void> executeNative(Map<String, dynamic> arguments) async {
final selectionStrategyIsAll =
arguments['selectionStrategyIsAll'] as int?;
final minimumConfirmations = arguments['minimumConfirmations'] as int?;
final message = arguments['onChainNote'] as String?;
final message = arguments['message'] as String?;
final amount = arguments['amount'] as int?;
final address = arguments['address'] as String?;
@ -492,7 +492,7 @@ class EpicCashWallet extends CoinServiceAPI
Logging.instance
.log("this is a string $message", level: LogLevel.Error);
stop(receivePort);
throw Exception("txHttpSend isolate failed");
throw Exception(message);
}
stop(receivePort);
Logging.instance
@ -1727,7 +1727,6 @@ class EpicCashWallet extends CoinServiceAPI
String? commitId = slatesToCommits[slateId]?['commitId'] as String?;
tx['numberOfMessages'] = tx['messages']?['messages']?.length;
tx['onChainNote'] = tx['messages']?['messages']?[0]?['message'];
print("ON CHAIN MESSAGE IS ${tx['onChainNote']}");
int? height;