Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ğecko
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
Ğecko
Commits
685af5e2
Commit
685af5e2
authored
3 months ago
by
poka
Browse files
Options
Downloads
Patches
Plain Diff
check ismember before hasidentity wallet
parent
794dd54c
No related branches found
No related tags found
No related merge requests found
Pipeline
#39412
failed
3 months ago
Stage: format
Stage: build_and_test
Stage: package
Changes
5
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.fvmrc
+3
-0
3 additions, 0 deletions
.fvmrc
.gitignore
+4
-1
4 additions, 1 deletion
.gitignore
.vscode/settings.json
+3
-0
3 additions, 0 deletions
.vscode/settings.json
lib/providers/my_wallets.dart
+4
-7
4 additions, 7 deletions
lib/providers/my_wallets.dart
pubspec.yaml
+1
-1
1 addition, 1 deletion
pubspec.yaml
with
15 additions
and
9 deletions
.fvmrc
0 → 100644
+
3
−
0
View file @
685af5e2
{
"flutter": "3.27.1"
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.gitignore
+
4
−
1
View file @
685af5e2
...
...
@@ -54,4 +54,7 @@ integration_test/duniter/data/chains/
# Ignore PC deps
scripts/pushGecko
android-old
\ No newline at end of file
android-old
# FVM Version Cache
.fvm/
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.vscode/settings.json
0 → 100644
+
3
−
0
View file @
685af5e2
{
"dart.flutterSdkPath"
:
".fvm/versions/3.27.1"
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
lib/providers/my_wallets.dart
+
4
−
7
View file @
685af5e2
...
...
@@ -14,8 +14,6 @@ import 'package:provider/provider.dart';
class
MyWalletsProvider
with
ChangeNotifier
{
List
<
WalletData
>
listWallets
=
[];
WalletData
?
idtyWallet
;
List
<
WalletData
>
listWalletsWithoutIdty
=
[];
String
pinCode
=
''
;
late
String
mnemonic
;
int
?
pinLenght
;
...
...
@@ -37,6 +35,10 @@ class MyWalletsProvider with ChangeNotifier {
bool
isWalletsExists
()
=
>
chestBox
.
isNotEmpty
;
WalletData
?
get
idtyWallet
=
>
listWallets
.
firstWhereOrNull
((
w
)
=
>
w
.
isMembre
)
??
listWallets
.
firstWhereOrNull
((
w
)
=
>
w
.
hasIdentity
);
List
<
WalletData
>
get
listWalletsWithoutIdty
=
>
listWallets
.
where
((
w
)
=
>
!
w
.
hasIdentity
)
.
toList
();
Future
<
List
<
WalletData
>>
readAllWallets
([
int
?
chest
])
async
{
final
sub
=
Provider
.
of
<
SubstrateSdk
>(
homeContext
,
listen:
false
);
chest
=
chest
??
getCurrentChest
();
...
...
@@ -66,11 +68,6 @@ class MyWalletsProvider with ChangeNotifier {
listWallets
.
sort
((
p1
,
p2
)
=
>
Comparable
.
compare
(
p1
.
number
!
,
p2
.
number
!
));
idtyWallet
=
listWallets
.
firstWhereOrNull
((
w
)
=
>
w
.
hasIdentity
);
listWalletsWithoutIdty
=
listWallets
.
toList
();
listWalletsWithoutIdty
.
removeWhere
((
w
)
=
>
w
.
address
==
idtyWallet
?.
address
);
return
listWallets
;
}
...
...
This diff is collapsed.
Click to expand it.
pubspec.yaml
+
1
−
1
View file @
685af5e2
...
...
@@ -2,7 +2,7 @@ name: gecko
description
:
Pay with G1.
publish_to
:
"
none"
version
:
0.1.21+9
5
version
:
0.1.21+9
6
environment
:
sdk
:
^3.5.3
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment