diff --git a/lib/blocs/pillars/delegate_button_bloc.dart b/lib/blocs/pillars/delegate_button_bloc.dart index 63145e32..bb65b1d5 100644 --- a/lib/blocs/pillars/delegate_button_bloc.dart +++ b/lib/blocs/pillars/delegate_button_bloc.dart @@ -1,4 +1,3 @@ -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'; @@ -6,9 +5,8 @@ import 'package:zenon_syrius_wallet_flutter/utils/constants.dart'; import 'package:znn_sdk_dart/znn_sdk_dart.dart'; class DelegateButtonBloc extends BaseBloc { - Future votePillar( + Future delegateToPillar( String? pillarName, - BuildContext context, ) async { try { addEvent(null); diff --git a/lib/widgets/modular_widgets/pillars_widgets/pillars_list_widget.dart b/lib/widgets/modular_widgets/pillars_widgets/pillars_list_widget.dart index eb39bfb8..c8ef208f 100644 --- a/lib/widgets/modular_widgets/pillars_widgets/pillars_list_widget.dart +++ b/lib/widgets/modular_widgets/pillars_widgets/pillars_list_widget.dart @@ -368,7 +368,7 @@ class _PillarsListWidgetState extends State { setState(() { _currentlyDelegatingToPillar = pillarInfo.name; }); - model.votePillar(pillarInfo.name, context); + model.delegateToPillar(pillarInfo.name); }, text: 'DELEGATE', textStyle: Theme.of(context).textTheme.titleSmall!.copyWith(