From ce46be2034f69e69f2b6a9ecdb652624b4172358 Mon Sep 17 00:00:00 2001 From: Nima Vaziri Date: Wed, 24 Apr 2024 02:22:11 -0400 Subject: [PATCH] style: add go report card and formatting --- README.md | 2 ++ aggregator/aggregator.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d8458f7e..31f4ac05 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Incredible Squaring AVS +[![Go Report Card](https://goreportcard.com/badge/github.com/Layr-Labs/incredible-squaring-avs)](https://goreportcard.com/report/github.com/Layr-Labs/incredible-squaring-avs) + Do not use it in Production, testnet only. Basic repo demoing a simple AVS middleware with full eigenlayer integration. See this [video walkthrough](https://www.loom.com/share/50314b3ec0f34e2ba386d45724602d76?sid=9d68d8cb-d2d5-4123-bd06-776de2076de0). diff --git a/aggregator/aggregator.go b/aggregator/aggregator.go index 2c504e09..2130a2fc 100644 --- a/aggregator/aggregator.go +++ b/aggregator/aggregator.go @@ -209,7 +209,7 @@ func (agg *Aggregator) sendNewTask(numToSquare *big.Int) error { agg.tasksMu.Unlock() quorumThresholdPercentages := make([]uint32, len(newTask.QuorumNumbers)) - for i, _ := range newTask.QuorumNumbers { + for i := range newTask.QuorumNumbers { quorumThresholdPercentages[i] = newTask.QuorumThresholdPercentage } // TODO(samlaf): we use seconds for now, but we should ideally pass a blocknumber to the blsAggregationService