From 2105061ad139819921ec0323e72c750d9bd06dc8 Mon Sep 17 00:00:00 2001 From: cosmatudor Date: Tue, 14 Jan 2025 11:28:45 +0200 Subject: [PATCH] fixes --- .../ethToMultiversXWithChainSimulator_test.go | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/integrationTests/relayers/slowTests/ethToMultiversXWithChainSimulator_test.go b/integrationTests/relayers/slowTests/ethToMultiversXWithChainSimulator_test.go index 8d26c4a5..dad373d7 100644 --- a/integrationTests/relayers/slowTests/ethToMultiversXWithChainSimulator_test.go +++ b/integrationTests/relayers/slowTests/ethToMultiversXWithChainSimulator_test.go @@ -36,7 +36,6 @@ func TestRelayersShouldExecuteTransfers(t *testing.T) { make(chan error), GenerateTestUSDCToken(), GenerateTestMEMEToken(), - GenerateTestTADAToken(), ) } @@ -46,6 +45,7 @@ func TestRelayersShouldExecuteTransfersWithMintBurnTokens(t *testing.T) { make(chan error), GenerateTestEUROCToken(), GenerateTestMEXToken(), + GenerateTestTADAToken(), ) } @@ -70,15 +70,11 @@ func TestRelayersShouldExecuteTransfersWithSCCallsWithArguments(t *testing.T) { memeToken := GenerateTestMEMEToken() memeToken.TestOperations[2].MvxSCCallData = callData - tadaToken := GenerateTestTADAToken() - tadaToken.TestOperations[2].MvxSCCallData = callData - testSetup := testRelayersWithChainSimulatorAndTokens( t, make(chan error), usdcToken, memeToken, - tadaToken, ) testCallPayableWithParamsWasCalled( @@ -86,7 +82,6 @@ func TestRelayersShouldExecuteTransfersWithSCCallsWithArguments(t *testing.T) { 37, usdcToken.AbstractTokenIdentifier, memeToken.AbstractTokenIdentifier, - tadaToken.AbstractTokenIdentifier, ) } @@ -102,11 +97,15 @@ func TestRelayersShouldExecuteTransfersWithSCCallsWithArgumentsWithMintBurnToken mexToken := GenerateTestMEXToken() mexToken.TestOperations[2].MvxSCCallData = callData + tadaToken := GenerateTestTADAToken() + tadaToken.TestOperations[2].MvxSCCallData = callData + testSetup := testRelayersWithChainSimulatorAndTokens( t, make(chan error), eurocToken, mexToken, + tadaToken, ) testCallPayableWithParamsWasCalled( @@ -114,6 +113,7 @@ func TestRelayersShouldExecuteTransfersWithSCCallsWithArgumentsWithMintBurnToken 37, eurocToken.AbstractTokenIdentifier, mexToken.AbstractTokenIdentifier, + tadaToken.AbstractTokenIdentifier, ) } @@ -160,17 +160,11 @@ func TestRelayersShouldExecuteTransfersWithInitSupply(t *testing.T) { memeToken.InitialSupplyValue = memeInitialValue.String() memeToken.MintBurnChecks.EthSafeMintValue.Add(memeToken.MintBurnChecks.EthSafeMintValue, memeInitialValue) - tadaInitialValue := big.NewInt(300000) - tadaToken := GenerateTestTADAToken() - tadaToken.InitialSupplyValue = tadaInitialValue.String() - tadaToken.MintBurnChecks.EthSafeMintValue.Add(tadaToken.MintBurnChecks.EthSafeMintValue, tadaInitialValue) - _ = testRelayersWithChainSimulatorAndTokens( t, make(chan error), usdcToken, memeToken, - tadaToken, ) } @@ -187,11 +181,18 @@ func TestRelayersShouldExecuteTransfersWithInitSupplyMintBurn(t *testing.T) { mexToken.MintBurnChecks.MvxSafeBurnValue.Add(mexToken.MintBurnChecks.MvxSafeBurnValue, mexInitialValue) mexToken.MintBurnChecks.EthSafeMintValue.Add(mexToken.MintBurnChecks.EthSafeMintValue, mexInitialValue) + tadaInitialValue := big.NewInt(300000) + tadaToken := GenerateTestTADAToken() + tadaToken.InitialSupplyValue = tadaInitialValue.String() + tadaToken.MintBurnChecks.MvxSafeBurnValue.Add(tadaToken.MintBurnChecks.MvxSafeBurnValue, tadaInitialValue) + tadaToken.MintBurnChecks.EthSafeMintValue.Add(tadaToken.MintBurnChecks.EthSafeMintValue, tadaInitialValue) + _ = testRelayersWithChainSimulatorAndTokens( t, make(chan error), eurocToken, mexToken, + tadaToken, ) }