1
0
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:
michielmulders 2017-11-02 21:32:46 +01:00
parent d7c3276e12
commit c793ffbb71

View File

@ -19,7 +19,7 @@ export default class Transaction {
const tx = clone(transaction) const tx = clone(transaction)
// TODO: set fulfillments to null // TODO: set fulfillments to null
// Sort the keys // Sort the keys
return stableStringify(tx, (a, b) => (a.key > b.key ? 1 : -1)) return stableStringify(this.tx, (a, b) => (a.key > b.key ? 1 : -1))
} }
makeInputTemplate(publicKeys = [], fulfills = null, fulfillment = null) { makeInputTemplate(publicKeys = [], fulfills = null, fulfillment = null) {
@ -59,7 +59,7 @@ export default class Transaction {
tx.outputs = outputs tx.outputs = outputs
// Hashing must be done after, as the hash is of the Transaction (up to now) // Hashing must be done after, as the hash is of the Transaction (up to now)
tx.id = hashTransaction(tx) tx.id = this.hashTransaction(tx)
return tx return tx
} }