diff --git a/lib/services/coins/firo/firo_wallet.dart b/lib/services/coins/firo/firo_wallet.dart index df1061b33..fb858b4ce 100644 --- a/lib/services/coins/firo/firo_wallet.dart +++ b/lib/services/coins/firo/firo_wallet.dart @@ -731,7 +731,7 @@ Future _setTestnetWrapper(bool isTestnet) async { // setTestnet(isTestnet); } -Future getAnonymity(int groupID) async { +Future getAnonymity(int groupID) async { Logging.instance.log("getAnonymity", level: LogLevel.Info); final Client client = Client(); try { @@ -743,7 +743,7 @@ Future getAnonymity(int groupID) async { body: jsonEncode({ "jsonrpc": "2.0", "id": "0", - 'index': groupID, + 'aset': groupID.toString(), }), ); @@ -753,7 +753,10 @@ Future getAnonymity(int groupID) async { Logging.instance.log(anonSetResult.body.toString(), level: LogLevel.Info); final response = jsonDecode(anonSetResult.body.toString()); if (response['status'] == 'success') { - return true; + final anonResponse = jsonDecode(response['result'] as String); + + Logging.instance.log(anonResponse, level: LogLevel.Info); + return response; } else { return false; }