From a9bb0723a49247ac179c3d50f808a4fff98b4417 Mon Sep 17 00:00:00 2001 From: Leon <156270887+leonz789@users.noreply.github.com> Date: Thu, 25 Apr 2024 17:32:19 +0800 Subject: [PATCH] fix(testsuite/sims): set all signatures (#20151) Co-authored-by: qinglin89 <316032931@qq.com> (cherry picked from commit c6890b387651d161d23212eb75a8db2dd37821a8) --- testutil/sims/tx_helpers.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/testutil/sims/tx_helpers.go b/testutil/sims/tx_helpers.go index c2234276073f..d017af078df8 100644 --- a/testutil/sims/tx_helpers.go +++ b/testutil/sims/tx_helpers.go @@ -70,10 +70,10 @@ func GenSignedMockTx(r *rand.Rand, txConfig client.TxConfig, msgs []sdk.Msg, fee panic(err) } sigs[i].Data.(*signing.SingleSignatureData).Signature = sig - err = tx.SetSignatures(sigs...) - if err != nil { - panic(err) - } + } + err = tx.SetSignatures(sigs...) + if err != nil { + panic(err) } return tx.GetTx(), nil