Skip to content

Commit

Permalink
fix: integration test (#562)
Browse files Browse the repository at this point in the history
Co-authored-by: nulnut <151493716+nulnut@users.noreply.github.com>
  • Loading branch information
zakir-code and nulnut authored Jun 17, 2024
1 parent 9a142e9 commit b0301c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/crosschain_suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,6 @@ func (suite *CrosschainTestSuite) CheckIncreaseBridgeFee(sender sdk.AccAddress,
}

func (suite *CrosschainTestSuite) SendBatchRequest(minTxs uint64) {
msgList := make([]sdk.Msg, 0)
batchFeeResponse, err := suite.CrosschainQuery().BatchFees(suite.ctx, &crosschaintypes.QueryBatchFeeRequest{ChainName: suite.chainName})
suite.NoError(err)
suite.True(len(batchFeeResponse.BatchFees) >= 1)
Expand All @@ -453,15 +452,17 @@ func (suite *CrosschainTestSuite) SendBatchRequest(minTxs uint64) {
})
suite.NoError(err)

msgList := make([]sdk.Msg, 0)
msgList = append(msgList, &crosschaintypes.MsgRequestBatch{
Sender: suite.BridgerAddr().String(),
Denom: denomResponse.Denom,
MinimumFee: batchToken.TotalFees,
FeeReceive: suite.HexAddressString(),
ChainName: suite.chainName,
})
suite.BroadcastTx(suite.bridgerPrivKey, msgList...)
suite.NoError(suite.network.WaitForNextBlock())
}
suite.BroadcastTx(suite.bridgerPrivKey, msgList...)
}

func (suite *CrosschainTestSuite) SendConfirmBatch() {
Expand Down

0 comments on commit b0301c0

Please sign in to comment.