Add til test l2db

This commit is contained in:
laisolizq
2020-11-11 18:06:56 +01:00
parent 8cc165f562
commit 1925110fda
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)