mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-27 06:18:50 +01:00
Reformat the whole codebase with 100 line width (#3403)
This commit is contained in:
@@ -78,7 +78,7 @@ class AnonPayApi {
|
||||
clearnetUri: Uri.https(clearNetAuthority, anonPayPath, body),
|
||||
onionUri: Uri.https(onionApiAuthority, anonPayPath, body),
|
||||
);
|
||||
|
||||
|
||||
final responseJSON = json.decode(response.body) as Map<String, dynamic>;
|
||||
final id = responseJSON['ID'] as String;
|
||||
final url = responseJSON['url'] as String;
|
||||
@@ -156,7 +156,7 @@ class AnonPayApi {
|
||||
clearnetUri: Uri.https(clearNetAuthority, coinPath, params),
|
||||
onionUri: Uri.https(onionApiAuthority, coinPath, params),
|
||||
);
|
||||
|
||||
|
||||
final responseJSON = json.decode(response.body) as List<dynamic>;
|
||||
if (response.statusCode != 200) {
|
||||
throw Exception('Unexpected http status: ${response.statusCode}');
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import 'package:cake_wallet/anonpay/anonpay_info_base.dart';
|
||||
|
||||
class AnonpayDonationLinkInfo implements AnonpayInfoBase{
|
||||
class AnonpayDonationLinkInfo implements AnonpayInfoBase {
|
||||
final String clearnetUrl;
|
||||
final String onionUrl;
|
||||
final String address;
|
||||
|
||||
|
||||
AnonpayDonationLinkInfo({
|
||||
required this.clearnetUrl,
|
||||
required this.onionUrl,
|
||||
required this.address,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,4 +2,4 @@ abstract class AnonpayInfoBase {
|
||||
String get clearnetUrl;
|
||||
String get onionUrl;
|
||||
String get address;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user