From 8fee25a001ac0c5c58a0f5b9c571546ef5420d7b Mon Sep 17 00:00:00 2001 From: TNarevicius Date: Mon, 20 Feb 2023 13:22:02 +0200 Subject: [PATCH] Fix mustIdentities() and mustSamples() from cert testdata --- identity/testdata/testdata.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/identity/testdata/testdata.go b/identity/testdata/testdata.go index 4dbb46c..bf0e34d 100644 --- a/identity/testdata/testdata.go +++ b/identity/testdata/testdata.go @@ -68,7 +68,7 @@ func ReadLocal() func(filename string) ([]byte, error) { func MustSamples(cc []*Cert, mspId string) []*IdentitySample { ss := make([]*IdentitySample, len(cc)) - for i, c := range Certificates { + for i, c := range cc { ss[i] = &IdentitySample{ MspID: mspId, Cert: c, @@ -79,7 +79,7 @@ func MustSamples(cc []*Cert, mspId string) []*IdentitySample { } func MustIdentities(cc []*Cert, mspId string) []*identity.CertIdentity { ii := make([]*identity.CertIdentity, len(cc)) - for i, c := range Certificates { + for i, c := range cc { ii[i] = c.MustIdentity(mspId) }