Skip to content

Commit

Permalink
refactor: renamed votePillar to delegateToPillar
Browse files Browse the repository at this point in the history
  • Loading branch information
alienc0der committed Jun 20, 2023
1 parent 8166496 commit 9ebcae8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions lib/blocs/pillars/delegate_button_bloc.dart
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import 'package:flutter/material.dart';
import 'package:zenon_syrius_wallet_flutter/blocs/blocs.dart';
import 'package:zenon_syrius_wallet_flutter/main.dart';
import 'package:zenon_syrius_wallet_flutter/utils/account_block_utils.dart';
import 'package:zenon_syrius_wallet_flutter/utils/constants.dart';
import 'package:znn_sdk_dart/znn_sdk_dart.dart';

class DelegateButtonBloc extends BaseBloc<AccountBlockTemplate?> {
Future<void> votePillar(
Future<void> delegateToPillar(
String? pillarName,
BuildContext context,
) async {
try {
addEvent(null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ class _PillarsListWidgetState extends State<PillarsListWidget> {
setState(() {
_currentlyDelegatingToPillar = pillarInfo.name;
});
model.votePillar(pillarInfo.name, context);
model.delegateToPillar(pillarInfo.name);
},
text: 'DELEGATE',
textStyle: Theme.of(context).textTheme.titleSmall!.copyWith(
Expand Down

0 comments on commit 9ebcae8

Please sign in to comment.