From af1640d3d16ccdea0145aa2f4e0eaac9c45c9e36 Mon Sep 17 00:00:00 2001 From: joanestebanr <129153821+joanestebanr@users.noreply.github.com> Date: Thu, 25 Jul 2024 15:57:14 +0200 Subject: [PATCH] PR comments --- dataavailability/datacommittee/datacommittee.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dataavailability/datacommittee/datacommittee.go b/dataavailability/datacommittee/datacommittee.go index c9542e33..a817644a 100644 --- a/dataavailability/datacommittee/datacommittee.go +++ b/dataavailability/datacommittee/datacommittee.go @@ -23,8 +23,8 @@ import ( ) const ( - unexpectedHashTemplate = "missmatch on transaction data. Expected hash %s, actual hash: %s" - translateContextName = "dataCommittee" + unexpectedHashTemplate = "missmatch on transaction data. Expected hash %s, actual hash: %s" + translateContextName = "dataCommittee" ) // DataCommitteeMember represents a member of the Data Committee @@ -188,7 +188,7 @@ func (s *Backend) PostSequenceElderberry(ctx context.Context, batchesData [][]by go requestSignatureFromMember(signatureCtx, &signedSequenceElderberry, func(c client.Client) ([]byte, error) { return c.SignSequence(ctx, signedSequenceElderberry) }, member, ch) } - return s.collectSignatures(committee, ch, cancelSignatureCollection) + return collectSignatures(committee, ch, cancelSignatureCollection) } func (s *Backend) PostSequence(ctx context.Context, sequence etherman.SequenceBanana) ([]byte, error) { @@ -235,10 +235,10 @@ func (s *Backend) PostSequence(ctx context.Context, sequence etherman.SequenceBa member, ch) } - return s.collectSignatures(committee, ch, cancelSignatureCollection) + return collectSignatures(committee, ch, cancelSignatureCollection) } -func (*Backend) collectSignatures(committee *DataCommittee, ch chan signatureMsg, cancelSignatureCollection context.CancelFunc) ([]byte, error) { +func collectSignatures(committee *DataCommittee, ch chan signatureMsg, cancelSignatureCollection context.CancelFunc) ([]byte, error) { // Collect signatures // Stop requesting as soon as we have N valid signatures var (