chore: lint

This commit is contained in:
Chance Hudson
2021-12-06 20:40:27 -06:00
committed by Wanseob Lim
parent e611a6c3e7
commit 484e572b57
2 changed files with 7 additions and 1 deletions

View File

@@ -185,7 +185,12 @@ export class TxMemPool implements TxPoolInterface {
for (const txHash of Object.keys(this.txs)) {
const tx = this.txs[txHash]
for (const { root } of tx.inflow) {
if (!(await offchainTxValidator.isValidRef(latestBlockHash, new Uint256(root.toString())))) {
if (
!(await offchainTxValidator.isValidRef(
latestBlockHash,
new Uint256(root.toString()),
))
) {
hashesToRemove.push(txHash)
break
}

View File

@@ -17,6 +17,7 @@ import { OffchainNullifierTreeValidator } from './offchain-nullifier-tree-valida
import { OffchainTxValidator } from './offchain-tx-validator'
import { OffchainUtxoTreeValidator } from './offchain-utxo-tree-validator'
import { OffchainWithdrawalTreeValidator } from './offchain-withdrawal-tree-validator'
export { OffchainDepositValidator } from './offchain-deposit-validator'
export { OffchainHeaderValidator } from './offchain-header-validator'
export { OffchainMigrationValidator } from './offchain-migration-validator'