mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-18 05:51:34 +02:00
minor fixes [skip ci]
This commit is contained in:
@@ -51,6 +51,8 @@ class RobinhoodBuyProvider extends BuyProvider {
|
||||
switch (wallet.type) {
|
||||
case WalletType.ethereum:
|
||||
case WalletType.polygon:
|
||||
case WalletType.solana:
|
||||
case WalletType.tron:
|
||||
return await wallet.signMessage(message);
|
||||
case WalletType.litecoin:
|
||||
case WalletType.bitcoin:
|
||||
@@ -78,8 +80,7 @@ class RobinhoodBuyProvider extends BuyProvider {
|
||||
if (response.statusCode == 200) {
|
||||
return (jsonDecode(response.body) as Map<String, dynamic>)['connectId'] as String;
|
||||
} else {
|
||||
throw Exception(
|
||||
'Provider currently unavailable. Status: ${response.statusCode} ${response.body}');
|
||||
throw Exception('Provider currently unavailable. Status: ${response.statusCode}');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -120,13 +121,13 @@ class RobinhoodBuyProvider extends BuyProvider {
|
||||
try {
|
||||
final uri = await requestProviderUrl();
|
||||
await launchUrl(uri, mode: LaunchMode.externalApplication);
|
||||
} catch (_) {
|
||||
} catch (e) {
|
||||
await showPopUp<void>(
|
||||
context: context,
|
||||
builder: (BuildContext context) {
|
||||
return AlertWithOneAction(
|
||||
alertTitle: "Robinhood Connect",
|
||||
alertContent: S.of(context).buy_provider_unavailable,
|
||||
alertContent: e.toString(),
|
||||
buttonText: S.of(context).ok,
|
||||
buttonAction: () => Navigator.of(context).pop());
|
||||
});
|
||||
|
||||
@@ -215,6 +215,7 @@ class ExceptionHandler {
|
||||
"input stream error",
|
||||
"invalid signature",
|
||||
"invalid password",
|
||||
"NetworkImage._loadAsync",
|
||||
// Temporary ignored, More context: Flutter secure storage reads the values as null some times
|
||||
// probably when the device was locked and then opened on Cake
|
||||
// this is solved by a restart of the app
|
||||
|
||||
Reference in New Issue
Block a user