Skip to content

Commit

Permalink
Merge branch 'master' of github.com:zcashfoundation/zecwallet
Browse files Browse the repository at this point in the history
  • Loading branch information
adityapk00 committed Jul 21, 2020
2 parents efffc29 + 7187054 commit fdbe05a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 74 deletions.
64 changes: 0 additions & 64 deletions .github/ISSUE_TEMPLATE/1-Bug_report.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,14 @@ about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

Please make sure you have the latest ZecWallet.
---Please make sure you have the latest ZecWallet.

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
Expand All @@ -23,9 +21,10 @@ Steps to reproduce the behavior:
A clear and concise description of what you expected to happen.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
6 changes: 3 additions & 3 deletions app/components/Sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const ImportPrivKeyModal = ({ modalIsOpen, modalInput, setModalInput, closeModal
</div>

<div className={cstyles.marginbottomlarge}>
Please paste your private keys here (transparent address or shielded address), one line per key.
Please paste your private or viewing keys here (transparent address or shielded address), one line per key.
</div>

<div className={cstyles.well} style={{ textAlign: 'center' }}>
Expand All @@ -91,7 +91,7 @@ const ImportPrivKeyModal = ({ modalIsOpen, modalInput, setModalInput, closeModal
Import
</button>
<button type="button" className={cstyles.primarybutton} onClick={closeModal}>
Close
Cancel
</button>
</div>
</Modal>
Expand Down Expand Up @@ -488,7 +488,7 @@ class Sidebar extends PureComponent<Props, State> {
actionCallback={this.payURI}
/>

{/* Payment URI Modal */}
{/* Import Private Key Modal */}
<ImportPrivKeyModal
modalIsOpen={privKeyModalIsOpen}
setModalInput={this.setImprovPrivKeyInputValue}
Expand Down
8 changes: 8 additions & 0 deletions app/rpc.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,14 @@ export default class RPC {
} catch (err) {
return err;
}
} else if (key.startsWith('zxview')) {
try {
const r = await RPC.doRPC('z_importviewingkey', [key, rescan ? 'yes' : 'no'], this.rpcConfig);
console.log(r.result);
return '';
} catch (err) {
return err;
}
} else {
try {
const r = await RPC.doRPC('importprivkey', [key, 'imported', rescan], this.rpcConfig);
Expand Down

0 comments on commit fdbe05a

Please sign in to comment.