remove multiple wallets + monero auto-open + agents rules

This commit is contained in:
2026-08-01 19:12:32 +08:00
parent bd8ba8e3e5
commit 5ac8c93027
7 changed files with 114 additions and 352 deletions
@@ -82,6 +82,10 @@ export const MoneroWallet = () => {
await checkStatus()
}
await listWallets()
if (wallets.length > 0) {
const pw = await moneroGetStoredPassword(wallets[0])
if (pw) await openExistingWallet(wallets[0], pw)
}
}
const logout = async () => {
@@ -80,7 +80,7 @@ export const XrpWallet = () => {
)
if (walletList) {
wallets = walletList
if (walletList.length === 1 && !currentWalletId) {
if (walletList.length > 0 && !currentWalletId) {
currentWalletId = walletList[0].id
}
}