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