Skip to content

Commit

Permalink
rpc: fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
octobocto committed Nov 4, 2023
1 parent 950b96c commit 4ef08a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
4 changes: 3 additions & 1 deletion lib/pages/tabs/bmm_tab_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ class BlindMergedMiningTabPage extends StatelessWidget {
physics: const NeverScrollableScrollPhysics(),
itemCount: viewModel.bmmAttempts.length,
itemBuilder: (context, index) => BMMAttemptView(
key: ValueKey<String>(viewModel.bmmAttempts[index].result.txid),
bmmAttempt: viewModel.bmmAttempts[index],
onPressed: () => viewModel.toggleRunning(false),
),
Expand Down Expand Up @@ -224,7 +225,8 @@ class BlindMergedMiningTabPageViewModel extends BaseViewModel {

// Ported from SidechainBMMTableModel::AddAttempt in the testchain codebase
void _addAttempt(BmmAttempt attempt) {
bmmAttempts.add(
bmmAttempts.insert(
0,
attempt,
);

Expand Down
10 changes: 0 additions & 10 deletions test/mocks/rpc_mock_sidechain.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:sidesail/pages/tabs/settings_tab.dart';
import 'package:sidesail/rpc/rpc_sidechain.dart';

class MockSidechainRPC extends SidechainRPC {
Expand Down Expand Up @@ -82,15 +81,6 @@ class MockSidechainRPC extends SidechainRPC {
return (true, null);
}

@override
SingleNodeConnectionSettings connectionSettings = SingleNodeConnectionSettings(
'/path/to/chain.conf',
'host',
2121,
'username',
'password',
);

@override
Future<void> createClient() async {
return;
Expand Down

0 comments on commit 4ef08a6

Please sign in to comment.