mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 11:26:44 +01:00
Abstract txs generation for ZKInputs tests
- TxProcessor move txCompressedDataEmpty inside the if of tp.zki!=nil - Abstract generation of transactions for ZKInput tests to avoid code repetition - used at txprocessor & test/zkproof tests
This commit is contained in:
@@ -294,8 +294,8 @@ func (tp *TxProcessor) ProcessTxs(coordIdxs []common.Idx, l1usertxs, l1coordinat
|
||||
}
|
||||
}
|
||||
|
||||
txCompressedDataEmpty := common.TxCompressedDataEmpty(tp.config.ChainID)
|
||||
if tp.zki != nil {
|
||||
txCompressedDataEmpty := common.TxCompressedDataEmpty(tp.config.ChainID)
|
||||
last := tp.i - 1
|
||||
if tp.i == 0 {
|
||||
last = 0
|
||||
|
||||
Reference in New Issue
Block a user