@@ -130,7 +130,8 @@ class MoonPayProvider extends BuyProvider {
130
130
final List <PaymentMethod > paymentMethods = [];
131
131
132
132
if (isBuyAction) {
133
- final fiatBuyCredentials = await fetchFiatCredentials (fiatCurrency, cryptoCurrency.title, null );
133
+ final fiatBuyCredentials =
134
+ await fetchFiatCredentials (fiatCurrency, cryptoCurrency.title, null );
134
135
if (fiatBuyCredentials.isNotEmpty) {
135
136
final paymentMethod = fiatBuyCredentials['paymentMethod' ] as String ? ;
136
137
paymentMethods.add (PaymentMethod .fromMoonPayJson (
@@ -223,7 +224,6 @@ class MoonPayProvider extends BuyProvider {
223
224
required bool isBuyAction,
224
225
required String cryptoCurrencyAddress,
225
226
String ? countryCode}) async {
226
-
227
227
final Map <String , String > params = {
228
228
'theme' : themeToMoonPayTheme (_settingsStore.currentTheme),
229
229
'language' : _settingsStore.languageCode,
@@ -246,19 +246,17 @@ class MoonPayProvider extends BuyProvider {
246
246
if (! isBuyAction) params['quoteCurrencyCode' ] = quote.cryptoCurrency.name;
247
247
248
248
try {
249
- {
250
- final uri = await requestMoonPayUrl (
251
- walletAddress: cryptoCurrencyAddress,
252
- settingsStore: _settingsStore,
253
- isBuyAction: isBuyAction,
254
- amount: amount.toString (),
255
- params: params);
256
-
257
- if (await canLaunchUrl (uri)) {
258
- await launchUrl (uri, mode: LaunchMode .externalApplication);
259
- } else {
260
- throw Exception ('Could not launch URL' );
261
- }
249
+ final uri = await requestMoonPayUrl (
250
+ walletAddress: cryptoCurrencyAddress,
251
+ settingsStore: _settingsStore,
252
+ isBuyAction: isBuyAction,
253
+ amount: amount.toString (),
254
+ params: params);
255
+
256
+ if (await canLaunchUrl (uri)) {
257
+ await launchUrl (uri, mode: LaunchMode .externalApplication);
258
+ } else {
259
+ throw Exception ('Could not launch URL' );
262
260
}
263
261
} catch (e) {
264
262
if (context.mounted) {
0 commit comments