package test import ( "testing" ethCommon "github.com/ethereum/go-ethereum/common" "github.com/stretchr/testify/assert") func TestGenAuths(t *testing.T) { chainID := uint16(0) hermezContractAddr := ethCommon.HexToAddress("0xc344E203a046Da13b0B4467EB7B3629D0C99F6E6") const nAuths = 5 auths := GenAuths(nAuths, chainID, hermezContractAddr) for _, auth := range auths { assert.True(t, auth.VerifySignature(chainID, hermezContractAddr)) }}
package test
import (
"testing"
ethCommon "github.com/ethereum/go-ethereum/common"
"github.com/stretchr/testify/assert"
)
func TestGenAuths(t *testing.T) {
chainID := uint16(0)
hermezContractAddr := ethCommon.HexToAddress("0xc344E203a046Da13b0B4467EB7B3629D0C99F6E6")
const nAuths = 5
auths := GenAuths(nAuths, chainID, hermezContractAddr)
for _, auth := range auths {
assert.True(t, auth.VerifySignature(chainID, hermezContractAddr))
}