Skip to content

Commit 7852d77

Browse files
committed
Initialize big.Int arrays
1 parent 221c51a commit 7852d77

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

bindings/utils/state/network.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,14 @@ func GetTotalEffectiveRplStake(rp *rocketpool.RocketPool, contracts *NetworkCont
228228
}
229229
count := len(addresses)
230230
minimumStakes := make([]*big.Int, count)
231+
// Initialize the effective stakes to 0
232+
for i := range minimumStakes {
233+
minimumStakes[i] = big.NewInt(0)
234+
}
231235
effectiveStakes := make([]*big.Int, count)
232-
236+
for i := range effectiveStakes {
237+
effectiveStakes[i] = big.NewInt(0)
238+
}
233239
// Sync
234240
var wg errgroup.Group
235241
wg.SetLimit(threadLimit)

0 commit comments

Comments
 (0)