mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 03:16:45 +01:00
Add transakcio Token Register instructions parser
This commit is contained in:
@@ -366,10 +366,7 @@ func (s *StateDB) processL2Tx(exitTree *merkletree.MerkleTree, tx *common.PoolL2
|
||||
return nil, nil, false, err
|
||||
}
|
||||
tx.Nonce = acc.Nonce
|
||||
// TokenID is also not set in the L2Txs from the blockchain
|
||||
// that the Synchronizer works with, but does not need to be
|
||||
// defined because is not used later for the L2Txs processing
|
||||
// (Transfer & Exit)
|
||||
tx.TokenID = acc.TokenID
|
||||
}
|
||||
|
||||
switch tx.Type {
|
||||
|
||||
@@ -22,7 +22,8 @@ func TestProcessTxsSynchronizer(t *testing.T) {
|
||||
|
||||
// generate test transactions from test.SetTest0 code
|
||||
tc := transakcio.NewTestContext()
|
||||
blocks := tc.GenerateBlocks(transakcio.SetBlockchain0)
|
||||
blocks, err := tc.GenerateBlocks(transakcio.SetBlockchain0)
|
||||
require.Nil(t, err)
|
||||
|
||||
assert.Equal(t, 29, len(blocks[0].Batches[0].L1UserTxs))
|
||||
assert.Equal(t, 0, len(blocks[0].Batches[0].L1CoordinatorTxs))
|
||||
|
||||
Reference in New Issue
Block a user