@@ -716,7 +716,7 @@ func TestABCI_FinalizeBlock_MultiMsg(t *testing.T) {
716
716
msgs = append (msgs , & baseapptestutil.MsgCounter2 {Counter : 0 , Signer : addr .String ()})
717
717
msgs = append (msgs , & baseapptestutil.MsgCounter2 {Counter : 1 , Signer : addr .String ()})
718
718
719
- builder .SetMsgs (msgs ... )
719
+ require . NoError ( t , builder .SetMsgs (msgs ... ) )
720
720
builder .SetMemo (tx .GetMemo ())
721
721
setTxSignature (t , builder , 0 )
722
722
@@ -888,7 +888,7 @@ func TestABCI_InvalidTransaction(t *testing.T) {
888
888
{
889
889
txBuilder := suite .txConfig .NewTxBuilder ()
890
890
_ , _ , addr := testdata .KeyTestPubAddr ()
891
- txBuilder .SetMsgs (& baseapptestutil.MsgCounter2 {Signer : addr .String ()})
891
+ require . NoError ( t , txBuilder .SetMsgs (& baseapptestutil.MsgCounter2 {Signer : addr .String ()}) )
892
892
setTxSignature (t , txBuilder , 0 )
893
893
unknownRouteTx := txBuilder .GetTx ()
894
894
@@ -901,10 +901,10 @@ func TestABCI_InvalidTransaction(t *testing.T) {
901
901
require .EqualValues (t , sdkerrors .ErrUnknownRequest .ABCICode (), code , err )
902
902
903
903
txBuilder = suite .txConfig .NewTxBuilder ()
904
- txBuilder .SetMsgs (
904
+ require . NoError ( t , txBuilder .SetMsgs (
905
905
& baseapptestutil.MsgCounter {Signer : addr .String ()},
906
906
& baseapptestutil.MsgCounter2 {Signer : addr .String ()},
907
- )
907
+ ))
908
908
setTxSignature (t , txBuilder , 0 )
909
909
unknownRouteTx = txBuilder .GetTx ()
910
910
@@ -920,7 +920,7 @@ func TestABCI_InvalidTransaction(t *testing.T) {
920
920
// Transaction with an unregistered message
921
921
{
922
922
txBuilder := suite .txConfig .NewTxBuilder ()
923
- txBuilder .SetMsgs (& testdata.MsgCreateDog {})
923
+ require . NoError ( t , txBuilder .SetMsgs (& testdata.MsgCreateDog {}) )
924
924
tx := txBuilder .GetTx ()
925
925
926
926
_ , _ , err := suite .baseApp .SimDeliver (suite .txConfig .TxEncoder (), tx )
@@ -1543,10 +1543,11 @@ func TestABCI_Proposals_WithVE(t *testing.T) {
1543
1543
1544
1544
suite := NewBaseAppSuite (t , setInitChainerOpt , prepareOpt )
1545
1545
1546
- suite .baseApp .InitChain (& abci.RequestInitChain {
1546
+ _ , err := suite .baseApp .InitChain (& abci.RequestInitChain {
1547
1547
InitialHeight : 1 ,
1548
1548
ConsensusParams : & cmtproto.ConsensusParams {},
1549
1549
})
1550
+ require .NoError (t , err )
1550
1551
1551
1552
reqPrepareProposal := abci.RequestPrepareProposal {
1552
1553
MaxTxBytes : 100000 ,
@@ -1683,11 +1684,12 @@ func TestABCI_PrepareProposal_MaxGas(t *testing.T) {
1683
1684
baseapptestutil .RegisterCounterServer (suite .baseApp .MsgServiceRouter (), NoopCounterServerImpl {})
1684
1685
1685
1686
// set max block gas limit to 100
1686
- suite .baseApp .InitChain (& abci.RequestInitChain {
1687
+ _ , err := suite .baseApp .InitChain (& abci.RequestInitChain {
1687
1688
ConsensusParams : & cmtproto.ConsensusParams {
1688
1689
Block : & cmtproto.BlockParams {MaxGas : 100 },
1689
1690
},
1690
1691
})
1692
+ require .NoError (t , err )
1691
1693
1692
1694
// insert 100 txs, each with a gas limit of 10
1693
1695
_ , _ , addr := testdata .KeyTestPubAddr ()
@@ -1696,7 +1698,7 @@ func TestABCI_PrepareProposal_MaxGas(t *testing.T) {
1696
1698
msgs := []sdk.Msg {msg }
1697
1699
1698
1700
builder := suite .txConfig .NewTxBuilder ()
1699
- builder .SetMsgs (msgs ... )
1701
+ require . NoError ( t , builder .SetMsgs (msgs ... ) )
1700
1702
builder .SetMemo ("counter=" + strconv .FormatInt (i , 10 ) + "&failOnAnte=false" )
1701
1703
builder .SetGasLimit (10 )
1702
1704
setTxSignature (t , builder , uint64 (i ))
@@ -2010,13 +2012,14 @@ func TestABCI_HaltChain(t *testing.T) {
2010
2012
for _ , tc := range testCases {
2011
2013
t .Run (tc .name , func (t * testing.T ) {
2012
2014
suite := NewBaseAppSuite (t , baseapp .SetHaltHeight (tc .haltHeight ), baseapp .SetHaltTime (tc .haltTime ))
2013
- suite .baseApp .InitChain (& abci.RequestInitChain {
2015
+ _ , err := suite .baseApp .InitChain (& abci.RequestInitChain {
2014
2016
ConsensusParams : & cmtproto.ConsensusParams {},
2015
2017
InitialHeight : tc .blockHeight ,
2016
2018
})
2019
+ require .NoError (t , err )
2017
2020
2018
2021
app := suite .baseApp
2019
- _ , err : = app .FinalizeBlock (& abci.RequestFinalizeBlock {
2022
+ _ , err = app .FinalizeBlock (& abci.RequestFinalizeBlock {
2020
2023
Height : tc .blockHeight ,
2021
2024
Time : time .Unix (tc .blockTime , 0 ),
2022
2025
})
0 commit comments