mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
Fixed cast for json to dart Map<String, dynamic> instead of Map<String, String> in too/secrets.dart
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ Future<void> main() async {
|
||||
: secretsTestPath;
|
||||
|
||||
final inoutContent = File(inputPath).readAsStringSync();
|
||||
final config = json.decode(inoutContent) as Map<String, String>;
|
||||
final config = json.decode(inoutContent) as Map<String, dynamic>;
|
||||
final output =
|
||||
'const salt = \'${config["salt"]}\';\nconst key = \'${config["key"]}\';\nconst walletSalt = \'${config["walletSalt"]}\';\nconst shortKey = \'${config["shortKey"]}\';\nconst change_now_api_key = \'${config["change_now_api_key"]}\';';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user