Skip to content

Commit

Permalink
fix(types/mempool): fix slice init length (#21494)
Browse files Browse the repository at this point in the history
Signed-off-by: dropbigfish <fillfish@foxmail.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
  • Loading branch information
dropbigfish and julienrbrt authored Sep 3, 2024
1 parent 62bf23a commit 7bf0442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/mempool/priority_nonce_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (a signerExtractionAdapter) GetSigners(tx sdk.Tx) ([]mempool.SignerData, er
if err != nil {
return nil, err
}
signerData := make([]mempool.SignerData, len(sigs))
signerData := make([]mempool.SignerData, 0, len(sigs))
for _, sig := range sigs {
signerData = append(signerData, mempool.SignerData{
Signer: sig.PubKey.Address().Bytes(),
Expand Down

0 comments on commit 7bf0442

Please sign in to comment.