mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 03:16:45 +01:00
On the Circuits uses the name `nTx` (and on the tests `maxTx`), but Contracts `maxTx`. On Go we had both variables, but really only used one, now at Go we use `MaxTx` to refer to the maximum number of transactions.
18 lines
309 B
Go
18 lines
309 B
Go
package common
|
|
|
|
import (
|
|
"encoding/json"
|
|
"math/big"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestZKInputs(t *testing.T) {
|
|
chainID := uint16(0)
|
|
zki := NewZKInputs(chainID, 100, 24, 512, 32, big.NewInt(1))
|
|
_, err := json.Marshal(zki)
|
|
require.NoError(t, err)
|
|
// fmt.Println(string(s))
|
|
}
|