From f7a8d11f14883e110c75b3618d5418b838d47e26 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Mon, 29 Jul 2019 23:32:17 +0200 Subject: [PATCH] Make array prealloc correct size License: MIT Signed-off-by: Jakub Sztandera --- chain/actors/actor_multisig.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chain/actors/actor_multisig.go b/chain/actors/actor_multisig.go index 1f4807494..b1809bd97 100644 --- a/chain/actors/actor_multisig.go +++ b/chain/actors/actor_multisig.go @@ -335,7 +335,7 @@ func (msa MultiSigActor) SwapSigner(act *types.Actor, vmctx types.VMContext, return nil, aerrors.New(6, "given new address was already a signer") } - newSigners := make([]address.Address, 0, len(self.Signers)-1) + newSigners := make([]address.Address, 0, len(self.Signers)) for _, s := range self.Signers { if s != params.From { newSigners = append(newSigners, s)