fix(wallet): use default wallet config for login to avoid duplication

This commit is contained in:
Ivan Belyakov 2023-11-08 13:49:07 +01:00 committed by IvanBelyakoff
parent 95eb5fe71d
commit 9faa5a5a3a
2 changed files with 2 additions and 19 deletions

View File

@ -241,6 +241,7 @@ var NODE_CONFIG* = %* {
"EnableFilterFullNode": true,
"UseShardAsDefaultTopic": true,
},
# Don't add properties to the login node config that can be changed from within the app
"WalletConfig": {
"Enabled": true,
"OpenseaAPIKey": OPENSEA_API_KEY_RESOLVED,

View File

@ -379,25 +379,7 @@ QtObject:
"UDPPort": WAKU_V2_PORT
}
result["WalletConfig"] = %* {
"LoadAllTransfers": true,
"OpenseaAPIKey": OPENSEA_API_KEY_RESOLVED,
"RaribleMainnetAPIKey": RARIBLE_MAINNET_API_KEY_RESOLVED,
"RaribleTestnetAPIKey": RARIBLE_TESTNET_API_KEY_RESOLVED,
"InfuraAPIKey": INFURA_TOKEN_RESOLVED,
"InfuraAPIKeySecret": INFURA_TOKEN_SECRET_RESOLVED,
"AlchemyAPIKeys": %* {
"1": ALCHEMY_ETHEREUM_MAINNET_TOKEN_RESOLVED,
"5": ALCHEMY_ETHEREUM_GOERLI_TOKEN_RESOLVED,
"11155111": ALCHEMY_ETHEREUM_SEPOLIA_TOKEN_RESOLVED,
"42161": ALCHEMY_ARBITRUM_MAINNET_TOKEN_RESOLVED,
"421613": ALCHEMY_ARBITRUM_GOERLI_TOKEN_RESOLVED,
"421614": ALCHEMY_ARBITRUM_SEPOLIA_TOKEN_RESOLVED,
"10": ALCHEMY_OPTIMISM_MAINNET_TOKEN_RESOLVED,
"420": ALCHEMY_OPTIMISM_GOERLI_TOKEN_RESOLVED,
"11155420": ALCHEMY_OPTIMISM_SEPOLIA_TOKEN_RESOLVED
}
}
result["WalletConfig"] = NODE_CONFIG["WalletConfig"]
result["TorrentConfig"] = %* {
"Port": TORRENT_CONFIG_PORT,