Add transakcio Token Register instructions parser

This commit is contained in:
arnaucube
2020-10-15 12:26:49 +02:00
parent 8dbcdaf4ea
commit a6006ebde7
8 changed files with 192 additions and 66 deletions

View File

@@ -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 {