mirror of
				https://github.com/0glabs/0g-chain.git
				synced 2025-11-04 14:57:27 +00:00 
			
		
		
		
	fix: use correct recipient for bep3 tests (#613)
This commit is contained in:
		
							parent
							
								
									9ae99ade27
								
							
						
					
					
						commit
						e9e038a2c4
					
				@ -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)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user