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
d7c3276e12
commit
c793ffbb71
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -93,7 +93,7 @@ export default class Transaction {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @public
|
* @public
|
||||||
* Create an Ed25519 Cryptocondition from an Ed25519 public key
|
* Create an Ed25519 Cryptocondition from an Ed25519 public key
|
||||||
* to put into an Output of a Transaction
|
* to put into an Output of a Transaction
|
||||||
* @param {string} publicKey base58 encoded Ed25519 public key for the recipient of the Transaction
|
* @param {string} publicKey base58 encoded Ed25519 public key for the recipient of the Transaction
|
||||||
* @param {boolean} [json=true] If true returns a json object otherwise a crypto-condition type
|
* @param {boolean} [json=true] If true returns a json object otherwise a crypto-condition type
|
||||||
|
Loading…
x
Reference in New Issue
Block a user