Skip to content

Commit

Permalink
v1.2.0 bump + Update Changelog (#195)
Browse files Browse the repository at this point in the history
* Bump version + Update Changelog

* Update Changelog + Improve Changelog style

* Send GUI inputs once successful

* Fix failing to send to Contacts starting with "S"

* Fix Send UI getting stuck with a CS address
  • Loading branch information
JSKitty authored Sep 10, 2023
1 parent dbb6e69 commit d73f97d
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 20 deletions.
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

0 comments on commit d73f97d

Please sign in to comment.