|
@@ -185,7 +185,7 @@ const estimateGasFee = async () => {
|
|
const feeWei = BigInt(gasPrice) * BigInt(gasLimit);
|
|
const feeWei = BigInt(gasPrice) * BigInt(gasLimit);
|
|
gasFee.value = Number(web3.utils.fromWei(feeWei.toString(), 'ether')).toFixed(8);
|
|
gasFee.value = Number(web3.utils.fromWei(feeWei.toString(), 'ether')).toFixed(8);
|
|
} catch (err) {
|
|
} catch (err) {
|
|
- console.error('预估矿工费失败:', err);
|
|
|
|
|
|
+ console.error($t('wallet.FailedToEstimateMinerFees'), err);
|
|
gasFee.value = '0.0000';
|
|
gasFee.value = '0.0000';
|
|
}
|
|
}
|
|
};
|
|
};
|
|
@@ -219,7 +219,7 @@ const cancel = () => {
|
|
// 密码确认
|
|
// 密码确认
|
|
const popConfirm = () => {
|
|
const popConfirm = () => {
|
|
if(passWord.value != cryptoDecode(walletStore.accountPassword)){
|
|
if(passWord.value != cryptoDecode(walletStore.accountPassword)){
|
|
- showNotify({ type: 'warning', message: '请输入正确的密码' });
|
|
|
|
|
|
+ showNotify({ type: 'warning', message: $t('wallet.PleaseEnterTheCorrectPassword') });
|
|
}else{
|
|
}else{
|
|
getData();
|
|
getData();
|
|
}
|
|
}
|
|
@@ -228,7 +228,7 @@ const popConfirm = () => {
|
|
const getData = async () => {
|
|
const getData = async () => {
|
|
isDisabledConfirm.value = true;
|
|
isDisabledConfirm.value = true;
|
|
showLoadingToast({
|
|
showLoadingToast({
|
|
- message: '转账中...',
|
|
|
|
|
|
+ message: $t('wallet.TransferInProgress'),
|
|
forbidClick: true,
|
|
forbidClick: true,
|
|
});
|
|
});
|
|
try {
|
|
try {
|
|
@@ -249,10 +249,10 @@ const getData = async () => {
|
|
unitNum.value
|
|
unitNum.value
|
|
);
|
|
);
|
|
}
|
|
}
|
|
- showToast('转账成功');
|
|
|
|
|
|
+ showToast($t('wallet.TheTransferWasSuccessful'));
|
|
router.push('/wallet');
|
|
router.push('/wallet');
|
|
} catch (err) {
|
|
} catch (err) {
|
|
- showToast('转账失败');
|
|
|
|
|
|
+ showToast($t('wallet.TransferFailed'));
|
|
} finally {
|
|
} finally {
|
|
showWallet.value = false;
|
|
showWallet.value = false;
|
|
isDisabledConfirm.value = false;
|
|
isDisabledConfirm.value = false;
|