Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.2.0 bump + Update Changelog #195

Merged
merged 6 commits into from
Sep 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions assets/style/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,14 @@ progress[value]::-moz-progress-bar {
.changelog p {
margin-bottom: 0px;
font-family: monospace !important;
opacity: 0.75;
}

.changelog h3 {
padding-left: 5px;
border-left-style: solid;
border-left-width: 5px;
border-left-color: #763acf;
}

.large-box {
Expand Down
23 changes: 17 additions & 6 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
# New Features
- New Setting: change your encryption password.
- Contacts Book: for friends, family and more.
- Advanced Mode: a new mode for tech-savvy users.
- Full Testnet support: 100% Testnet coverage.
- Added ability to Send or Receive via XPub.

# New Languages
- 🇮🇹 Italian (by Valerio, Duddino).
- 🇲🇽 Mexican Spanish (by ONeZetty).

# Improvements
- Improved 'Debug Mode' verbosity.
- A full Account DB rewrite for improved safety.
- Added colour-coded recipient validation.
- Send & Receive now uses Text instead of Icons.
- i18n will fallback to English when missing text.
- Hidden 'BIP39 Passphrase' behind Advanced Mode.

# Bug Fixes
- Fixed critical proposal creation 'crashing'.
- Fixed destructive multi-proposal finalisation.
- Fixed Tx failures with Debug Mode on.
- Disabled Labs Analytics (stops console errors).
- Fixed Stakes 'duplicating' coins when MPW is open.
- Fixed random network errors from CoinGecko.
- Fixed certain delegations from failing.
- Fixed seeds failing to import with whitespace.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mypivxwallet",
"version": "1.1.1",
"version": "1.2.0",
"description": "Wallet for PIVX",
"main": "scripts/index.js",
"scripts": {
Expand Down
32 changes: 21 additions & 11 deletions scripts/transactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,6 @@ export async function createTxGUI() {
// Cache the "end" receiver, which will be an Address
let strReceiverAddress = strRawReceiver;

// If Staking address: redirect to staking page
if (strRawReceiver.startsWith(cChainParams.current.STAKING_PREFIX)) {
createAlert('warning', ALERTS.STAKE_NOT_SEND, 7500);
return doms.domStakeTab.click();
}

// Check for any contacts that match the input
const cDB = await Database.getInstance();
const cAccount = await cDB.getAccount();
Expand Down Expand Up @@ -125,6 +119,18 @@ export async function createTxGUI() {
strReceiverAddress = cReceiverWallet.getAddress(strPath);
}

// If Staking address: redirect to staking page
if (
strReceiverAddress.startsWith(cChainParams.current.STAKING_PREFIX) &&
strRawReceiver.length === 34
) {
createAlert('warning', ALERTS.STAKE_NOT_SEND, 7500);
// Close the current Send Popup
toggleBottomMenu('transferMenu', 'transferAnimation');
// Open the Staking Dashboard
return doms.domStakeTab.click();
}

// Check if the Receiver Address is a valid P2PKH address
if (!isStandardAddress(strReceiverAddress))
return createAlert(
Expand All @@ -146,17 +152,21 @@ export async function createTxGUI() {
isDelegation: false,
});

// Wipe any payment request info
if (cRes.ok && doms.domReqDesc.value) {
// Description
doms.domReqDesc.value = '';
doms.domReqDisplay.style.display = 'none';
// If successful, wipe Tx input
if (cRes.ok) {
// Address
doms.domAddress1s.value = '';
// Amount
doms.domSendAmountCoins.value = '';
// Price
doms.domSendAmountValue.value = '';

// Wipe any Payment Request info
if (doms.domReqDesc.value) {
// Description
doms.domReqDesc.value = '';
doms.domReqDisplay.style.display = 'none';
}
}
}

Expand Down