Skip to content

Commit

Permalink
fix(plugin): encode the map with json.encode to send the correct fo…
Browse files Browse the repository at this point in the history
…rmat

Signed-off-by: Vincenzo Palazzo <[email protected]>
  • Loading branch information
vincenzopalazzo committed Aug 9, 2022
1 parent 9f8669f commit 73bf8d1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion packages/cln_plugin/lib/src/cln_plugin_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ class Plugin implements CLNPlugin {
id: jsonRequest.id,
error: Error(code: -1, message: ex.toString()))
.toJson();
stdout.write(response);
stdout.write(json.encode(response));
}
}
} catch (error, stacktrace) {
Expand Down
9 changes: 0 additions & 9 deletions packages/cln_plugin/test/cln_plugin_test.dart

This file was deleted.

1 change: 0 additions & 1 deletion packages/rpc/test/clightning_rpc_test.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'dart:io';
import 'package:test/test.dart';
import 'package:clightning_rpc/clightning_rpc.dart';
import 'package:clightning_rpc/src/utils/exception/ln_client_error.dart';

void main() {
var env = Platform.environment;
Expand Down

0 comments on commit 73bf8d1

Please sign in to comment.