mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 03:16:45 +01:00
Update ZKInputs test vectors with float40 & other
- Add AmountF new parameter to ZKInputs - Update ZKInputs test vectors with float40 checked with circom circuits - Small fix at eth/rollup.go with lenL1L2TxsBytes with new length of Float40
This commit is contained in:
@@ -142,10 +142,12 @@ func GenerateTxsZKInputs0(t *testing.T, chainID uint16) (users []til.User, coord
|
||||
// same values than in the js test
|
||||
users = GenerateJsUsers(t)
|
||||
|
||||
depositAmount, err := common.Float40(10400).BigInt()
|
||||
require.Nil(t, err)
|
||||
l1UserTxs = []common.L1Tx{
|
||||
{
|
||||
FromIdx: 0,
|
||||
DepositAmount: big.NewInt(16000000),
|
||||
DepositAmount: depositAmount,
|
||||
Amount: big.NewInt(0),
|
||||
TokenID: 1,
|
||||
FromBJJ: users[0].BJJ.Public().Compress(),
|
||||
|
||||
Reference in New Issue
Block a user