Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

Protect the accounts of Ape and Brownie

Țugui Dragoș7278a531510a
diff --git a/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift b/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
index 5ccbb3a1..50db5c8d 100644
--- a/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
+++ b/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
@@ -138,6 +138,8 @@ public enum ProtectedData: Sendable {
"Library/Application Support/ethereum2/wallets",
"Library/Signer",
".foundry/keystores",
+ ".ape/accounts",
+ ".brownie/accounts",
"Library/Preferences/hardhat-nodejs",
".phoenix/seed.dat",
".eclair",
diff --git a/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
index a7da3142..80bf5168 100644
--- a/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
+++ b/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
@@ -41,6 +41,8 @@ struct DesktopWalletTests {
"Library/Eth2Validators/prysm-wallet-v2/accounts/all-accounts.keystore.json",
"Library/Application Support/ethereum2/wallets/main/wallet.json",
"Library/Signer/masterseed.json",
+ ".ape/accounts/main.json",
+ ".brownie/accounts/main.json",
])
func refusesWhatAWalletKeeps(_ key: String) throws {
let directory = try TemporaryDirectory()
@@ -67,6 +69,7 @@ struct DesktopWalletTests {
"Library/Application Support/Haveno-reto/xmr_mainnet/haveno.log",
"Library/Containers/com.cypherstack.stackwallet/Data/Library/Caches/thumbnail.png",
".lighthouse/mainnet/beacon/chain_db/000001.sst",
+ ".brownie/packages/OpenZeppelin/[email protected]/package.json",
])
func leavesWhatComesBackOnItsOwn(_ cache: String) throws {
let directory = try TemporaryDirectory()