From e9e038a2c43aaaed5ecbd6717774cffe7c75481d Mon Sep 17 00:00:00 2001 From: Kevin Davis Date: Tue, 21 Jul 2020 17:48:31 -0400 Subject: [PATCH] fix: use correct recipient for bep3 tests (#613) --- x/bep3/keeper/swap_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/x/bep3/keeper/swap_test.go b/x/bep3/keeper/swap_test.go index 1ae2648e..133afe8d 100644 --- a/x/bep3/keeper/swap_test.go +++ b/x/bep3/keeper/swap_test.go @@ -588,6 +588,7 @@ func (suite *AtomicSwapTestSuite) TestClaimAtomicSwap() { // Set sender to other and increment current asset supply for outgoing swap if tc.args.direction == types.Outgoing { sender = suite.addrs[6] + expectedRecipient = suite.deputy err := suite.keeper.IncrementCurrentAssetSupply(suite.ctx, expectedClaimAmount[0]) suite.Nil(err) } @@ -739,16 +740,18 @@ func (suite *AtomicSwapTestSuite) TestRefundAtomicSwap() { // Create atomic swap expectedRefundAmount := cs(c(BNB_DENOM, 50000)) sender := suite.deputy + expectedRecipient := suite.addrs[9] // Set sender to other and increment current asset supply for outgoing swap if tc.args.direction == types.Outgoing { sender = suite.addrs[6] + expectedRecipient = suite.deputy err := suite.keeper.IncrementCurrentAssetSupply(suite.ctx, expectedRefundAmount[0]) suite.Nil(err) } err := suite.keeper.CreateAtomicSwap(suite.ctx, suite.randomNumberHashes[i], suite.timestamps[i], - types.DefaultMinBlockLock, sender, suite.addrs[9], TestSenderOtherChain, TestRecipientOtherChain, + types.DefaultMinBlockLock, sender, expectedRecipient, TestSenderOtherChain, TestRecipientOtherChain, expectedRefundAmount, true) suite.NoError(err)