mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-08 11:59:23 +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) {
|
switch (wallet.type) {
|
||||||
case WalletType.ethereum:
|
case WalletType.ethereum:
|
||||||
case WalletType.polygon:
|
case WalletType.polygon:
|
||||||
|
case WalletType.solana:
|
||||||
|
case WalletType.tron:
|
||||||
return await wallet.signMessage(message);
|
return await wallet.signMessage(message);
|
||||||
case WalletType.litecoin:
|
case WalletType.litecoin:
|
||||||
case WalletType.bitcoin:
|
case WalletType.bitcoin:
|
||||||
|
@ -78,8 +80,7 @@ class RobinhoodBuyProvider extends BuyProvider {
|
||||||
if (response.statusCode == 200) {
|
if (response.statusCode == 200) {
|
||||||
return (jsonDecode(response.body) as Map<String, dynamic>)['connectId'] as String;
|
return (jsonDecode(response.body) as Map<String, dynamic>)['connectId'] as String;
|
||||||
} else {
|
} else {
|
||||||
throw Exception(
|
throw Exception('Provider currently unavailable. Status: ${response.statusCode}');
|
||||||
'Provider currently unavailable. Status: ${response.statusCode} ${response.body}');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -120,13 +121,13 @@ class RobinhoodBuyProvider extends BuyProvider {
|
||||||
try {
|
try {
|
||||||
final uri = await requestProviderUrl();
|
final uri = await requestProviderUrl();
|
||||||
await launchUrl(uri, mode: LaunchMode.externalApplication);
|
await launchUrl(uri, mode: LaunchMode.externalApplication);
|
||||||
} catch (_) {
|
} catch (e) {
|
||||||
await showPopUp<void>(
|
await showPopUp<void>(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (BuildContext context) {
|
builder: (BuildContext context) {
|
||||||
return AlertWithOneAction(
|
return AlertWithOneAction(
|
||||||
alertTitle: "Robinhood Connect",
|
alertTitle: "Robinhood Connect",
|
||||||
alertContent: S.of(context).buy_provider_unavailable,
|
alertContent: e.toString(),
|
||||||
buttonText: S.of(context).ok,
|
buttonText: S.of(context).ok,
|
||||||
buttonAction: () => Navigator.of(context).pop());
|
buttonAction: () => Navigator.of(context).pop());
|
||||||
});
|
});
|
||||||
|
|
|
@ -215,6 +215,7 @@ class ExceptionHandler {
|
||||||
"input stream error",
|
"input stream error",
|
||||||
"invalid signature",
|
"invalid signature",
|
||||||
"invalid password",
|
"invalid password",
|
||||||
|
"NetworkImage._loadAsync",
|
||||||
// Temporary ignored, More context: Flutter secure storage reads the values as null some times
|
// 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
|
// probably when the device was locked and then opened on Cake
|
||||||
// this is solved by a restart of the app
|
// this is solved by a restart of the app
|
||||||
|
|
Loading…
Reference in a new issue