Merge pull request #362 from hermeznetwork/feature/updatetxs

Update txs constructors and helpers
This commit is contained in:
arnau
2020-12-17 10:53:12 +01:00
committed by GitHub
6 changed files with 207 additions and 157 deletions

View File

@@ -882,6 +882,9 @@ func (tc *Context) FillBlocksExtra(blocks []common.BlockData, cfg *ConfigExtra)
position++
tc.extra.nonces[tx.FromIdx]++
tx.Nonce = tc.extra.nonces[tx.FromIdx]
if err := tx.SetID(); err != nil {
return err
}
nTx, err := common.NewL2Tx(tx)
if err != nil {
return tracerr.Wrap(err)