File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
pages/add_wallet_views/add_token_view Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -316,7 +316,7 @@ class _EditWalletTokensViewState extends ConsumerState<EditWalletTokensView> {
316316 // Also add the custom token mint address to the wallet's custom token list.
317317 final wallet = ref.read (pWallets).getWallet (widget.walletId);
318318 if (wallet is SolanaWallet ) {
319- final currentCustomTokens = wallet.info.solanaCustomTokenMintAddresses. toSet () ;
319+ final currentCustomTokens = wallet.info.solanaCustomTokenMintAddresses;
320320 currentCustomTokens.add (token.address);
321321 await wallet.info.updateSolanaCustomTokenMintAddresses (
322322 newMintAddresses: currentCustomTokens,
Original file line number Diff line number Diff line change @@ -437,7 +437,7 @@ class WalletInfo implements IsarId {
437437
438438 /// Update custom Solana token mint addresses and update the db.
439439 Future <void > updateSolanaCustomTokenMintAddresses ({
440- required Set <String > newMintAddresses,
440+ required List <String > newMintAddresses,
441441 required Isar isar,
442442 }) async {
443443 await updateOtherData (
Original file line number Diff line number Diff line change @@ -645,7 +645,7 @@ class SolanaWallet extends Bip39Wallet<Solana> {
645645 return false ;
646646 }
647647
648- Future <void > updateSolanaTokens (Set <String > mintAddresses) async {
648+ Future <void > updateSolanaTokens (List <String > mintAddresses) async {
649649 await info.updateSolanaCustomTokenMintAddresses (
650650 newMintAddresses: mintAddresses,
651651 isar: mainDB.isar,
You can’t perform that action at this time.
0 commit comments