mirror of
https://github.com/andrei0x309/clear-wallet.git
synced 2024-12-19 00:00:45 +00:00
chore: other changes added in changelog
This commit is contained in:
parent
7a187cd0cf
commit
97d37021f0
@ -5,6 +5,8 @@
|
||||
- improved eth_call and eth_blockNumber to be more compatible with older websites
|
||||
- better error internal handling
|
||||
- modify the receipt returned to resamble more the one from Metamask
|
||||
- change some notes in about
|
||||
- refactored account name edit to be more user friendly
|
||||
|
||||
## Manifest Version 1.3.2
|
||||
|
||||
|
@ -42,9 +42,16 @@
|
||||
</template>
|
||||
<ion-item>
|
||||
<ion-button @click="onCancel">Cancel</ion-button>
|
||||
<ion-button @click="onAddAccount">{{
|
||||
isEdit ? "Edit Account" : "Add Account"
|
||||
}}</ion-button>
|
||||
<ion-button
|
||||
@click="
|
||||
() => {
|
||||
isEdit ? onEditAccount() : onAddAccount();
|
||||
}
|
||||
"
|
||||
expand="full"
|
||||
color="primary"
|
||||
>{{ isEdit ? "Edit Account" : "Add Account" }}</ion-button
|
||||
>
|
||||
</ion-item>
|
||||
<ion-alert
|
||||
:is-open="alertOpen"
|
||||
@ -120,6 +127,7 @@ import {
|
||||
smallRandomString,
|
||||
paste,
|
||||
getSettings,
|
||||
replaceAccounts,
|
||||
} from "@/utils/platform";
|
||||
import router from "@/router";
|
||||
import { useRoute } from "vue-router";
|
||||
@ -192,8 +200,48 @@ export default defineComponent({
|
||||
}
|
||||
});
|
||||
|
||||
const deleteAccount = async (address: string, accounts: Account[]) => {
|
||||
const findIndex = accounts.findIndex((a) => a.address === address);
|
||||
const pArr: Array<Promise<void>> = [];
|
||||
if (findIndex !== -1) {
|
||||
accounts.splice(findIndex, 1);
|
||||
pArr.push(replaceAccounts([...accounts]));
|
||||
}
|
||||
await Promise.all(pArr);
|
||||
};
|
||||
|
||||
const onEditAccount = async () => {
|
||||
if (name.value.length < 1) {
|
||||
alertMsg.value = "Name cannot be empty.";
|
||||
alertOpen.value = true;
|
||||
return;
|
||||
}
|
||||
const accounts = (await accountsProm) as Account[];
|
||||
const account = accounts.find((acc) => acc.address === paramAddress);
|
||||
if (!account) {
|
||||
alertMsg.value = "Account not found.";
|
||||
alertOpen.value = true;
|
||||
return;
|
||||
}
|
||||
const savedAcc = {
|
||||
address: account.address,
|
||||
name: name.value,
|
||||
pk: account.pk,
|
||||
encPk: account.encPk,
|
||||
};
|
||||
await deleteAccount(account.address, accounts);
|
||||
|
||||
await saveAccount(savedAcc);
|
||||
router.push("/tabs/accounts");
|
||||
};
|
||||
|
||||
const onAddAccount = async () => {
|
||||
let p1 = Promise.resolve();
|
||||
if (name.value.length < 1) {
|
||||
alertMsg.value = "Name cannot be empty.";
|
||||
alertOpen.value = true;
|
||||
return;
|
||||
}
|
||||
if (pk.value.length === 64) {
|
||||
pk.value = `0x${pk.value.trim()}`;
|
||||
}
|
||||
@ -320,6 +368,7 @@ export default defineComponent({
|
||||
mnemonic,
|
||||
mnemonicIndex,
|
||||
extractMnemonic,
|
||||
onEditAccount,
|
||||
};
|
||||
},
|
||||
});
|
||||
|
@ -120,13 +120,12 @@
|
||||
and Ethers.
|
||||
</p>
|
||||
<p>
|
||||
It emulates Metamask Wallet and can be used as a drop-in replacement, right
|
||||
now if you have both extensions, CLW will overwrite Metamask.
|
||||
</p>
|
||||
<p>
|
||||
Main philosophy of the wallet is: no trackers, full control, export/import
|
||||
JSONs with accounts, fast generate new accounts, and wipe everything with
|
||||
one click.
|
||||
Unlike most wallets, this wallet has no ads, no analytics, no trackers, no
|
||||
bloatware, no telemetry, no data collection, no sponsored content, no
|
||||
sponsored Dapps, no sponsored tokens, no sponsored NFTs, no sponsored
|
||||
anything. It is a clean wallet with no revenue model, made by a single
|
||||
developer, if you want to support this project financially you can donate at
|
||||
andrei0x309.eth.
|
||||
</p>
|
||||
<p>
|
||||
Github Repo:
|
||||
@ -134,6 +133,10 @@
|
||||
>LINK</a
|
||||
>
|
||||
</p>
|
||||
<p>
|
||||
Docs Website:
|
||||
<a href="#" @click="openTab('https://clear-wallet.flashsoft.eu')">LINK</a>
|
||||
</p>
|
||||
<br />
|
||||
<p style="margin-bottom: 0.2rem">Places you can check me out:</p>
|
||||
<p>
|
||||
@ -148,10 +151,6 @@
|
||||
Blog Flashsoft
|
||||
<a href="#" @click="openTab('https://blog.flashsoft.eu')">LINK</a>
|
||||
</p>
|
||||
<p>
|
||||
Crypto-Leftists Discord
|
||||
<a href="#" @click="openTab('https://discord.gg/gzA4bTCdhb')">LINK</a>
|
||||
</p>
|
||||
</div>
|
||||
</ion-accordion>
|
||||
<ion-accordion value="4">
|
||||
|
Loading…
Reference in New Issue
Block a user