Skip to content
This repository was archived by the owner on Nov 27, 2018. It is now read-only.

Commit

Permalink
0.8.81: add client.getWalletPassphrase method
Browse files Browse the repository at this point in the history
fixes #16

auditor: @ayumi
  • Loading branch information
mrose17 committed Sep 27, 2016
1 parent 222ca58 commit 906b538
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,13 @@ Client.prototype.getWalletAddress = function () {
return this.state.properties && this.state.properties.wallet && this.state.properties.wallet.address
}

Client.prototype.getWalletPassphrase = function () {
this._log('getWalletPassphrase')

return this.state.properties && this.state.properties.wallet && this.state.properties.wallet.keychains &&
this.state.properties.wallet.keychains.passphrase
}

Client.prototype.getWalletProperties = function (amount, currency, callback) {
var self = this

Expand Down Expand Up @@ -749,7 +756,7 @@ Client.prototype._transactionByViewingId = function (viewingId) {
}

Client.prototype._getTransactionCSVRows = function (viewingIds) {
let txContribData = this._publisherVoteData(viewingIds)
var txContribData = this._publisherVoteData(viewingIds)
var publishers = underscore.keys(txContribData)

var currency = txContribData[publishers[0]].contribution.currency
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ledger-client",
"version": "0.8.80",
"version": "0.8.81",
"description": "An example of client code for the Brave ledger.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 906b538

Please sign in to comment.