You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
513 B

  1. package batchbuilder
  2. import (
  3. "fmt"
  4. "testing"
  5. "github.com/iden3/go-merkletree/db/memory"
  6. "github.com/stretchr/testify/assert"
  7. )
  8. // func genTxs(n int) common.Tx {
  9. // return common.Tx{}
  10. // }
  11. // func genL1Txs(n int) []common.L1Tx {
  12. //
  13. // return nil
  14. // }
  15. // func genL2Txs(n int) []common.L2Tx {
  16. //
  17. // return nil
  18. // }
  19. func TestBatchBuilder(t *testing.T) {
  20. stateDB := memory.NewMemoryStorage()
  21. bb, err := NewBatchBuilder(stateDB, nil, 0, 0, 32)
  22. assert.Nil(t, err)
  23. fmt.Println(bb)
  24. }