1
0
mirror of https://github.com/bigchaindb/js-bigchaindb-driver.git synced 2024-11-22 09:46:58 +01:00

ESLint fixes

This commit is contained in:
michielmulders 2017-11-02 22:49:01 +01:00
parent 9b05b7354f
commit 35e1073a2f

View File

@ -100,7 +100,7 @@ export default class Transaction {
* @returns {object} Ed25519 Condition (that will need to wrapped in an Output)
*/
makeEd25519Condition(publicKey, json = true) {
const publicKeyBuffer = new Buffer(base58.decode(publicKey))
const publicKeyBuffer = new Buffer(this.base58.decode(publicKey))
const ed25519Fulfillment = new cc.Ed25519Sha256()
ed25519Fulfillment.setPublicKey(publicKeyBuffer)
@ -135,7 +135,7 @@ export default class Transaction {
details.subconditions.map(getPublicKeys)
}
}
getPublicKeys(condition.details)
this.getPublicKeys(condition.details)
return {
condition,
'amount': amount,
@ -155,7 +155,7 @@ export default class Transaction {
sha256Fulfillment.preimage = new Buffer(preimage)
if (json) {
return ccJsonify(sha256Fulfillment)
return this.ccJsonify(sha256Fulfillment)
}
return sha256Fulfillment
}
@ -178,7 +178,7 @@ export default class Transaction {
})
if (json) {
return ccJsonify(thresholdCondition)
return this.ccJsonify(thresholdCondition)
}
return thresholdCondition