Skip to content

Commit

Permalink
fix force transfer error msgs in tokenfactory tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sotnikov-s committed Jun 14, 2024
1 parent e32aa4f commit 8db652f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/tokenfactory/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ func (suite *KeeperTestSuite) TestForceTransferMsg() {
suite.Require().NoError(err)

_, err = suite.msgServer.ForceTransfer(suite.ChainA.GetContext(), types.NewMsgForceTransfer(suite.TestAccs[0].String(), mintAmt, govModAcc.GetAddress().String(), suite.TestAccs[1].String()))
suite.Require().ErrorContains(err, "force transfer from module acc not available")
suite.Require().ErrorContains(err, "force transfer from module accounts is forbidden")

_, err = suite.msgServer.ForceTransfer(suite.ChainA.GetContext(), types.NewMsgForceTransfer(suite.TestAccs[0].String(), mintAmt, suite.TestAccs[1].String(), govModAcc.GetAddress().String()))
suite.Require().ErrorContains(err, "force transfer to module acc not available")
suite.Require().ErrorContains(err, "force transfer to module accounts is forbidden")
})
}

Expand Down

0 comments on commit 8db652f

Please sign in to comment.