mirror of
https://github.com/bigchaindb/js-bigchaindb-driver.git
synced 2025-02-14 21:10:32 +01:00
ESLint fixes
This commit is contained in:
parent
9b05b7354f
commit
35e1073a2f
@ -100,7 +100,7 @@ export default class Transaction {
|
|||||||
* @returns {object} Ed25519 Condition (that will need to wrapped in an Output)
|
* @returns {object} Ed25519 Condition (that will need to wrapped in an Output)
|
||||||
*/
|
*/
|
||||||
makeEd25519Condition(publicKey, json = true) {
|
makeEd25519Condition(publicKey, json = true) {
|
||||||
const publicKeyBuffer = new Buffer(base58.decode(publicKey))
|
const publicKeyBuffer = new Buffer(this.base58.decode(publicKey))
|
||||||
|
|
||||||
const ed25519Fulfillment = new cc.Ed25519Sha256()
|
const ed25519Fulfillment = new cc.Ed25519Sha256()
|
||||||
ed25519Fulfillment.setPublicKey(publicKeyBuffer)
|
ed25519Fulfillment.setPublicKey(publicKeyBuffer)
|
||||||
@ -135,7 +135,7 @@ export default class Transaction {
|
|||||||
details.subconditions.map(getPublicKeys)
|
details.subconditions.map(getPublicKeys)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
getPublicKeys(condition.details)
|
this.getPublicKeys(condition.details)
|
||||||
return {
|
return {
|
||||||
condition,
|
condition,
|
||||||
'amount': amount,
|
'amount': amount,
|
||||||
@ -155,7 +155,7 @@ export default class Transaction {
|
|||||||
sha256Fulfillment.preimage = new Buffer(preimage)
|
sha256Fulfillment.preimage = new Buffer(preimage)
|
||||||
|
|
||||||
if (json) {
|
if (json) {
|
||||||
return ccJsonify(sha256Fulfillment)
|
return this.ccJsonify(sha256Fulfillment)
|
||||||
}
|
}
|
||||||
return sha256Fulfillment
|
return sha256Fulfillment
|
||||||
}
|
}
|
||||||
@ -178,7 +178,7 @@ export default class Transaction {
|
|||||||
})
|
})
|
||||||
|
|
||||||
if (json) {
|
if (json) {
|
||||||
return ccJsonify(thresholdCondition)
|
return this.ccJsonify(thresholdCondition)
|
||||||
}
|
}
|
||||||
|
|
||||||
return thresholdCondition
|
return thresholdCondition
|
||||||
|
Loading…
Reference in New Issue
Block a user