Merge pull request #279 from hermeznetwork/feature/l2db-test-til

Add til test l2db
This commit is contained in:
a_bennassar
2020-11-16 18:13:50 +01:00
committed by GitHub
2 changed files with 403 additions and 214 deletions

View File

@@ -591,6 +591,7 @@ func (tc *Context) GeneratePoolL2Txs(set string) ([]common.PoolL2Tx, error) {
TokenID: inst.tokenID,
Amount: big.NewInt(int64(inst.amount)),
Nonce: tc.Users[inst.from].Accounts[inst.tokenID].Nonce,
State: common.PoolL2TxStatePending,
Type: common.TxTypeExit,
}
nTx, err := common.NewPoolL2Tx(&tx)