aboutsummaryrefslogtreecommitdiffstats
path: root/test/lib/mock-tx-gen.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/mock-tx-gen.js')
-rw-r--r--test/lib/mock-tx-gen.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/lib/mock-tx-gen.js b/test/lib/mock-tx-gen.js
index 7aea09c59..106101500 100644
--- a/test/lib/mock-tx-gen.js
+++ b/test/lib/mock-tx-gen.js
@@ -17,14 +17,14 @@ class TxGenerator {
}
generate (tx = {}, opts = {}) {
- let { count, fromNonce } = opts
+ const { count, fromNonce } = opts
let nonce = fromNonce || this.txs.length
- let txs = []
+ const txs = []
for (let i = 0; i < count; i++) {
txs.push(extend(template, {
txParams: {
nonce: hexify(nonce++),
- }
+ },
}, tx))
}
this.txs = this.txs.concat(txs)