Skip to content

Commit

Permalink
sail: fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
octobocto committed Sep 9, 2024
1 parent 08808a5 commit d5e203d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ class SendViewModel extends BaseViewModel {

BalanceProvider get _balanceProvider => GetIt.I.get<BalanceProvider>();
TransactionsProvider get _transactionsProvider => GetIt.I.get<TransactionsProvider>();
AppRouter get _router => GetIt.I.get<AppRouter>();
MainchainRPC get _rpc => GetIt.I.get<MainchainRPC>();

final addressController = TextEditingController();
Expand Down
3 changes: 0 additions & 3 deletions packages/sidesail/lib/providers/cast_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,6 @@ class CastProvider extends ChangeNotifier {
}

void _executeCast(int powerOf, int iteration) async {
print('execute cast $iteration');

try {
final bundle = futureCasts.elementAt(powerOf);
log.t('executing powerOf=${bundle.powerOf} with amount=${bundle.castAmount}');
Expand All @@ -169,7 +167,6 @@ class CastProvider extends ChangeNotifier {
executeAction: () => _executeCast(powerOf, iteration + 1),
);
futureCasts[bundle.powerOf] = newBill;
print('recreated next bundle to be executed at ${newBill.executeTime} arraySize=${futureCasts.length}');
await Future.delayed(const Duration(seconds: 1), () {});

await _zcashProvider.fetch();
Expand Down
1 change: 0 additions & 1 deletion packages/sidesail/lib/rpc/rpc_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ String? _configValue(List<String> config, String key) {
return line?.split('=').lastOrNull;
}

// TODO: this might need permissions configuration for Windows and Linux?
String mainchainDatadir() {
final home = Platform.environment['HOME'] ?? Platform.environment['USERPROFILE']; // windows!
if (home == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ class PegOutViewModel extends BaseViewModel {
final log = Logger(level: Level.debug);
BalanceProvider get _balanceProvider => GetIt.I.get<BalanceProvider>();
TransactionsProvider get _transactionsProvider => GetIt.I.get<TransactionsProvider>();
AppRouter get _router => GetIt.I.get<AppRouter>();
SidechainContainer get sidechain => GetIt.I.get<SidechainContainer>();
MainchainRPC get _mainchain => GetIt.I.get<MainchainRPC>();

Expand Down Expand Up @@ -320,7 +319,6 @@ class PegInEthAction extends StatelessWidget {

class PegInEthViewModel extends BaseViewModel {
BalanceProvider get _balanceProvider => GetIt.I.get<BalanceProvider>();
AppRouter get _router => GetIt.I.get<AppRouter>();
EthereumRPC get _ethRPC => GetIt.I.get<EthereumRPC>();
SidechainContainer get sidechain => GetIt.I.get<SidechainContainer>();
final log = Logger(level: Level.debug);
Expand Down Expand Up @@ -391,7 +389,7 @@ class PegInEthViewModel extends BaseViewModel {
context: context,
action: 'Deposit from parent chain',
title: 'Could not deposit from parent-chain',
subtitle: error.toString(),
subtitle: '$error. Check you have enough balance in your parent-chain wallet.',
);
}
}
Expand Down

0 comments on commit d5e203d

Please sign in to comment.