mirror of
https://github.com/tornadocash/tx-manager.git
synced 2025-02-05 17:05:57 +01:00
prettier
This commit is contained in:
parent
8ed25df485
commit
60d34f8817
@ -4,7 +4,10 @@
|
|||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "eslint .",
|
"eslint": "eslint --ext .js --ignore-path .gitignore .",
|
||||||
|
"prettier:check": "npx prettier --check . --config .prettierrc",
|
||||||
|
"prettier:fix": "npx prettier --write . --config .prettierrc",
|
||||||
|
"lint": "yarn eslint && yarn prettier:check",
|
||||||
"test": "mocha --timeout 300000"
|
"test": "mocha --timeout 300000"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* A promise that resolves after `ms` milliseconds
|
* A promise that resolves after `ms` milliseconds
|
||||||
*/
|
*/
|
||||||
const sleep = (ms) => new Promise((res) => setTimeout(res, ms))
|
const sleep = ms => new Promise(res => setTimeout(res, ms))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A promise that resolves when the source emits specified event
|
* A promise that resolves when the source emits specified event
|
||||||
|
@ -32,9 +32,9 @@ describe('TxManager', () => {
|
|||||||
|
|
||||||
const receipt = await tx
|
const receipt = await tx
|
||||||
.send()
|
.send()
|
||||||
.on('transactionHash', (hash) => console.log('hash', hash))
|
.on('transactionHash', hash => console.log('hash', hash))
|
||||||
.on('mined', (receipt) => console.log('Mined in block', receipt.blockNumber))
|
.on('mined', receipt => console.log('Mined in block', receipt.blockNumber))
|
||||||
.on('confirmations', (confirmations) => console.log('confirmations', confirmations))
|
.on('confirmations', confirmations => console.log('confirmations', confirmations))
|
||||||
|
|
||||||
console.log('receipt', receipt)
|
console.log('receipt', receipt)
|
||||||
})
|
})
|
||||||
@ -46,9 +46,9 @@ describe('TxManager', () => {
|
|||||||
|
|
||||||
const receipt = await tx
|
const receipt = await tx
|
||||||
.send()
|
.send()
|
||||||
.on('transactionHash', (hash) => console.log('hash', hash))
|
.on('transactionHash', hash => console.log('hash', hash))
|
||||||
.on('mined', (receipt) => console.log('Mined in block', receipt.blockNumber))
|
.on('mined', receipt => console.log('Mined in block', receipt.blockNumber))
|
||||||
.on('confirmations', (confirmations) => console.log('confirmations', confirmations))
|
.on('confirmations', confirmations => console.log('confirmations', confirmations))
|
||||||
|
|
||||||
console.log('receipt', receipt)
|
console.log('receipt', receipt)
|
||||||
})
|
})
|
||||||
@ -60,9 +60,9 @@ describe('TxManager', () => {
|
|||||||
|
|
||||||
const receipt = await tx
|
const receipt = await tx
|
||||||
.send()
|
.send()
|
||||||
.on('transactionHash', (hash) => console.log('hash', hash))
|
.on('transactionHash', hash => console.log('hash', hash))
|
||||||
.on('mined', (receipt) => console.log('Mined in block', receipt.blockNumber))
|
.on('mined', receipt => console.log('Mined in block', receipt.blockNumber))
|
||||||
.on('confirmations', (confirmations) => console.log('confirmations', confirmations))
|
.on('confirmations', confirmations => console.log('confirmations', confirmations))
|
||||||
|
|
||||||
console.log('receipt', receipt)
|
console.log('receipt', receipt)
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user