mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-07 19:39:41 +00:00
minor fixes [skip ci]
This commit is contained in:
parent
52e20e1a44
commit
471a2af527
2 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue