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

ESLint fixes

This commit is contained in:
michielmulders 2017-11-02 22:25:26 +01:00
parent c793ffbb71
commit 9b05b7354f

View File

@ -16,10 +16,10 @@ export default class Transaction {
serializeTransactionIntoCanonicalString(transaction) { serializeTransactionIntoCanonicalString(transaction) {
// BigchainDB signs fulfillments by serializing transactions into a // BigchainDB signs fulfillments by serializing transactions into a
// "canonical" format where // "canonical" format where
const tx = clone(transaction) const tx = this.clone(transaction)
// TODO: set fulfillments to null // TODO: set fulfillments to null
// Sort the keys // Sort the keys
return stableStringify(this.tx, (a, b) => (a.key > b.key ? 1 : -1)) return stableStringify(tx, (a, b) => (a.key > b.key ? 1 : -1))
} }
makeInputTemplate(publicKeys = [], fulfills = null, fulfillment = null) { makeInputTemplate(publicKeys = [], fulfills = null, fulfillment = null) {