feat: restrict history api calls when toggle is off in privacy settings (#3615)

* feat: restrict history api calls when toggle is off in privacy settings

* refactor: remove unnecessary transaction timer cancellation
This commit is contained in:
David Adegoke
2026-09-16 23:05:40 +02:00
committed by GitHub
parent 5ed6759edc
commit 3a04c7ff1e
6 changed files with 36 additions and 10 deletions
+2 -2
View File
@@ -275,8 +275,8 @@ static String getScanProviderPreferenceKey(int chainId) {
return switch (chainId) {
1 => 'use_etherscan',
137 => 'use_polygonscan',
8453 => 'use_basescan',
42161 => 'use_arbiscan',
8453 => 'use_base_scan',
42161 => 'use_arbitrum_scan',
10 => 'use_optimismscan', // NEW
_ => 'use_etherscan', // Default
};