diff --git a/integrationTests/relayers/slowTests/common.go b/integrationTests/relayers/slowTests/common.go index 30ef3de5..e51fb8d1 100644 --- a/integrationTests/relayers/slowTests/common.go +++ b/integrationTests/relayers/slowTests/common.go @@ -315,6 +315,156 @@ func ApplyMEMERefundBalances(token *framework.TestTokenParams) { token.MintBurnChecks.EthSafeMintValue = big.NewInt(4000 - 50 + 6000 - 50 + 2000 - 50 + 1300 - 50 + 1000 - 50) } +// GenerateTestTADAToken will generate a test MEME token +func GenerateTestTADAToken() framework.TestTokenParams { + //TADA is ethNative = false, ethMintBurn = true, mvxNative = true, mvxMintBurn = false, hasChainSpecificToken = true + return framework.TestTokenParams{ + IssueTokenParams: framework.IssueTokenParams{ + AbstractTokenIdentifier: "TADA", + NumOfDecimalsUniversal: 1, + NumOfDecimalsChainSpecific: 1, + MvxUniversalTokenTicker: "TADA", + MvxChainSpecificTokenTicker: "ETHTADA", + MvxUniversalTokenDisplayName: "WrappedTADA", + MvxChainSpecificTokenDisplayName: "EthereumWrappedTADA", + ValueToMintOnMvx: "10000000000", + IsMintBurnOnMvX: true, + IsNativeOnMvX: true, + HasChainSpecificToken: true, + EthTokenName: "EthTADA", + EthTokenSymbol: "TADA", + ValueToMintOnEth: "10000000000", + IsMintBurnOnEth: true, + IsNativeOnEth: false, + }, + TestOperations: []framework.TokenOperations{ + { + ValueToTransferToMvx: big.NewInt(3100), + ValueToSendFromMvX: big.NewInt(5980), + }, + { + ValueToTransferToMvx: big.NewInt(800), + ValueToSendFromMvX: big.NewInt(2300), + }, + { + ValueToTransferToMvx: big.NewInt(2000), + ValueToSendFromMvX: big.NewInt(4000), + MvxSCCallData: createScCallData("callPayable", 50000000), + }, + { + ValueToTransferToMvx: nil, + ValueToSendFromMvX: big.NewInt(29), + IsFaultyDeposit: true, + }, + { + ValueToTransferToMvx: nil, + ValueToSendFromMvX: big.NewInt(670), + InvalidReceiver: ethZeroAddress, + IsFaultyDeposit: true, + }, + { + ValueToTransferToMvx: big.NewInt(1900), + ValueToSendFromMvX: nil, + InvalidReceiver: mvxZeroAddress, + }, + }, + DeltaBalances: map[framework.HalfBridgeIdentifier]framework.DeltaBalancesOnKeys{ + framework.FirstHalfBridge: map[string]*framework.DeltaBalanceHolder{ + framework.Alice: { + OnEth: big.NewInt(0), + OnMvx: big.NewInt(-5980 - 2300 - 4000), + MvxToken: framework.UniversalToken, + }, + framework.Bob: { + OnEth: big.NewInt(5980 - 50 + 2300 - 50 + 4000 - 50), + OnMvx: big.NewInt(0), + MvxToken: framework.UniversalToken, + }, + framework.SafeSC: { + OnEth: big.NewInt(0), + OnMvx: big.NewInt(50 + 50 + 50), + MvxToken: framework.ChainSpecificToken, + }, + framework.CalledTestSC: { + OnEth: big.NewInt(0), + OnMvx: big.NewInt(0), + MvxToken: framework.UniversalToken, + }, + framework.WrapperSC: { + OnEth: big.NewInt(0), + OnMvx: big.NewInt(-5980 - 2300 - 4000), + MvxToken: framework.ChainSpecificToken, + }, + }, + framework.SecondHalfBridge: map[string]*framework.DeltaBalanceHolder{ + framework.Alice: { + OnEth: big.NewInt(0), + OnMvx: big.NewInt(-5980 - 2300 - 4000), + MvxToken: framework.UniversalToken, + }, + framework.Bob: { + OnEth: big.NewInt(5980 - 50 - 3100 + 2300 - 50 - 800 + 4000 - 50 - 2000 - 1900 + 1850), + OnMvx: big.NewInt(0), + MvxToken: framework.UniversalToken, + }, + framework.Charlie: { + OnEth: big.NewInt(0), + OnMvx: big.NewInt(3100 + 800), + MvxToken: framework.UniversalToken, + }, + framework.SafeSC: { + OnEth: big.NewInt(0), + OnMvx: big.NewInt(50 + 50 + 50 + 50), + MvxToken: framework.ChainSpecificToken, + }, + framework.CalledTestSC: { + OnEth: big.NewInt(0), + OnMvx: big.NewInt(2000), + MvxToken: framework.UniversalToken, + }, + framework.WrapperSC: { + OnEth: big.NewInt(0), + OnMvx: big.NewInt(-5980 - 2300 - 4000 + 3100 + 800 + 2000), + MvxToken: framework.ChainSpecificToken, + }, + }, + }, + MintBurnChecks: &framework.MintBurnBalances{ + MvxTotalUniversalMint: big.NewInt(3100 + 800 + 2000), + MvxTotalChainSpecificMint: big.NewInt(3100 + 800 + 2000 + 1900), + MvxTotalUniversalBurn: big.NewInt(5980 + 2300 + 4000), + MvxTotalChainSpecificBurn: big.NewInt(5980 - 50 + 2300 - 50 + 4000 - 50 + 1900 - 50), + MvxSafeMintValue: big.NewInt(3100 + 800 + 2000 + 1900), + MvxSafeBurnValue: big.NewInt(5980 - 50 + 2300 - 50 + 4000 - 50 + 1900 - 50), + + EthSafeMintValue: big.NewInt(5980 - 50 + 2300 - 50 + 4000 - 50 + 1900 - 50), + EthSafeBurnValue: big.NewInt(3100 + 800 + 2000 + 1900), + }, + SpecialChecks: &framework.SpecialBalanceChecks{ + WrapperDeltaLiquidityCheck: big.NewInt(-5980 - 2300 - 4000 + 3100 + 800 + 2000), + }, + } +} + +// ApplyTADARefundBalances will apply the refund balances on the involved entities for the MEME token +func ApplyTADARefundBalances(token *framework.TestTokenParams) { + // we need to add the 1000 MEME tokens as the third bridge was done that include the refund on the Ethereum side + token.DeltaBalances[framework.SecondHalfBridge][framework.SafeSC].OnMvx = big.NewInt(50 + 50 + 50 + 50 + 50) + // Bob will get his tokens back from the refund + token.DeltaBalances[framework.SecondHalfBridge][framework.Bob].OnEth = big.NewInt(5980 - 50 - 3100 + 2300 - 50 - 800 + 4000 - 50 - 1900 + 1850 - 2000 + 1950) + // no funds remain in the test caller SC + token.DeltaBalances[framework.SecondHalfBridge][framework.CalledTestSC].OnMvx = big.NewInt(0) + // we need to subtract the refunded value from the wrapper contract + token.DeltaBalances[framework.SecondHalfBridge][framework.WrapperSC].OnMvx = big.NewInt(-5980 - 2300 - 4000 + 3100 + 800 + 2000 - 2000) + + token.MintBurnChecks.MvxTotalChainSpecificBurn = big.NewInt(5980 - 50 + 2300 - 50 + 4000 - 50 + 2000 - 50 + 1900 - 50) + token.MintBurnChecks.MvxTotalUniversalBurn = big.NewInt(5980 + 2300 + 4000 + 2000) + token.MintBurnChecks.EthSafeMintValue = big.NewInt(5980 - 50 + 2300 - 50 + 4000 - 50 + 2000 - 50 + 1900 - 50) + token.MintBurnChecks.MvxSafeBurnValue = big.NewInt(5980 - 50 + 2300 - 50 + 4000 - 50 + 2000 - 50 + 1900 - 50) + + token.SpecialChecks.WrapperDeltaLiquidityCheck = big.NewInt(-5980 - 2300 - 4000 + 3100 + 800 + 2000 - 2000) +} + // GenerateTestEUROCToken will generate a test EUROC token func GenerateTestEUROCToken() framework.TestTokenParams { //EUROC is ethNative = true, ethMintBurn = true, mvxNative = false, mvxMintBurn = true diff --git a/integrationTests/relayers/slowTests/ethToMultiversXWithChainSimulator_test.go b/integrationTests/relayers/slowTests/ethToMultiversXWithChainSimulator_test.go index 2e6636a5..dad373d7 100644 --- a/integrationTests/relayers/slowTests/ethToMultiversXWithChainSimulator_test.go +++ b/integrationTests/relayers/slowTests/ethToMultiversXWithChainSimulator_test.go @@ -45,6 +45,7 @@ func TestRelayersShouldExecuteTransfersWithMintBurnTokens(t *testing.T) { make(chan error), GenerateTestEUROCToken(), GenerateTestMEXToken(), + GenerateTestTADAToken(), ) } @@ -96,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( @@ -108,6 +113,7 @@ func TestRelayersShouldExecuteTransfersWithSCCallsWithArgumentsWithMintBurnToken 37, eurocToken.AbstractTokenIdentifier, mexToken.AbstractTokenIdentifier, + tadaToken.AbstractTokenIdentifier, ) } @@ -175,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, ) } diff --git a/integrationTests/relayers/slowTests/refundWithChainSimulator_test.go b/integrationTests/relayers/slowTests/refundWithChainSimulator_test.go index cf76e252..23b91942 100644 --- a/integrationTests/relayers/slowTests/refundWithChainSimulator_test.go +++ b/integrationTests/relayers/slowTests/refundWithChainSimulator_test.go @@ -30,6 +30,11 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { memeToken.TestOperations[2].MvxFaultySCCall = true ApplyMEMERefundBalances(&memeToken) + tadaToken := GenerateTestTADAToken() + tadaToken.TestOperations[2].MvxSCCallData = callData + tadaToken.TestOperations[2].MvxFaultySCCall = true + ApplyTADARefundBalances(&tadaToken) + eurocToken := GenerateTestEUROCToken() eurocToken.TestOperations[2].MvxSCCallData = callData eurocToken.TestOperations[2].MvxFaultySCCall = true @@ -45,6 +50,7 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { make(chan error), usdcToken, memeToken, + tadaToken, eurocToken, mexToken, ) @@ -61,6 +67,11 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { memeToken.TestOperations[2].MvxFaultySCCall = true ApplyMEMERefundBalances(&memeToken) + tadaToken := GenerateTestTADAToken() + tadaToken.TestOperations[2].MvxSCCallData = callData + tadaToken.TestOperations[2].MvxFaultySCCall = true + ApplyTADARefundBalances(&tadaToken) + eurocToken := GenerateTestEUROCToken() eurocToken.TestOperations[2].MvxSCCallData = callData eurocToken.TestOperations[2].MvxFaultySCCall = true @@ -76,6 +87,7 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { make(chan error), usdcToken, memeToken, + tadaToken, eurocToken, mexToken, ) @@ -92,6 +104,11 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { memeToken.TestOperations[2].MvxFaultySCCall = true ApplyMEMERefundBalances(&memeToken) + tadaToken := GenerateTestTADAToken() + tadaToken.TestOperations[2].MvxSCCallData = callData + tadaToken.TestOperations[2].MvxFaultySCCall = true + ApplyTADARefundBalances(&tadaToken) + eurocToken := GenerateTestEUROCToken() eurocToken.TestOperations[2].MvxSCCallData = callData eurocToken.TestOperations[2].MvxFaultySCCall = true @@ -107,6 +124,7 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { make(chan error), usdcToken, memeToken, + tadaToken, eurocToken, mexToken, ) @@ -123,6 +141,11 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { memeToken.TestOperations[2].MvxFaultySCCall = true ApplyMEMERefundBalances(&memeToken) + tadaToken := GenerateTestTADAToken() + tadaToken.TestOperations[2].MvxSCCallData = callData + tadaToken.TestOperations[2].MvxFaultySCCall = true + ApplyTADARefundBalances(&tadaToken) + eurocToken := GenerateTestEUROCToken() eurocToken.TestOperations[2].MvxSCCallData = callData eurocToken.TestOperations[2].MvxFaultySCCall = true @@ -138,6 +161,7 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { make(chan error), usdcToken, memeToken, + tadaToken, eurocToken, mexToken, ) @@ -154,6 +178,11 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { memeToken.TestOperations[2].MvxFaultySCCall = true ApplyMEMERefundBalances(&memeToken) + tadaToken := GenerateTestTADAToken() + tadaToken.TestOperations[2].MvxSCCallData = callData + tadaToken.TestOperations[2].MvxFaultySCCall = true + ApplyTADARefundBalances(&tadaToken) + eurocToken := GenerateTestEUROCToken() eurocToken.TestOperations[2].MvxSCCallData = callData eurocToken.TestOperations[2].MvxFaultySCCall = true @@ -169,6 +198,7 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { make(chan error), usdcToken, memeToken, + tadaToken, eurocToken, mexToken, ) @@ -186,6 +216,11 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { memeToken.TestOperations[2].MvxFaultySCCall = true ApplyMEMERefundBalances(&memeToken) + tadaToken := GenerateTestTADAToken() + tadaToken.TestOperations[2].MvxSCCallData = callData + tadaToken.TestOperations[2].MvxFaultySCCall = true + ApplyTADARefundBalances(&tadaToken) + eurocToken := GenerateTestEUROCToken() eurocToken.TestOperations[2].MvxSCCallData = callData eurocToken.TestOperations[2].MvxFaultySCCall = true @@ -201,6 +236,7 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { make(chan error), usdcToken, memeToken, + tadaToken, eurocToken, mexToken, ) @@ -220,6 +256,12 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { memeToken.TestOperations[2].InvalidReceiver = uninitializedSCAddressBytes.AddressBytes() ApplyMEMERefundBalances(&memeToken) + tadaToken := GenerateTestTADAToken() + tadaToken.TestOperations[2].MvxSCCallData = callData + tadaToken.TestOperations[2].MvxFaultySCCall = true + tadaToken.TestOperations[2].InvalidReceiver = uninitializedSCAddressBytes.AddressBytes() + ApplyTADARefundBalances(&tadaToken) + eurocToken := GenerateTestEUROCToken() eurocToken.TestOperations[2].MvxSCCallData = callData eurocToken.TestOperations[2].MvxFaultySCCall = true @@ -237,6 +279,7 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { make(chan error), usdcToken, memeToken, + tadaToken, eurocToken, mexToken, ) @@ -253,6 +296,11 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { memeToken.TestOperations[2].MvxFaultySCCall = true ApplyMEMERefundBalances(&memeToken) + tadaToken := GenerateTestTADAToken() + tadaToken.TestOperations[2].MvxSCCallData = callData + tadaToken.TestOperations[2].MvxFaultySCCall = true + ApplyTADARefundBalances(&tadaToken) + eurocToken := GenerateTestEUROCToken() eurocToken.TestOperations[2].MvxSCCallData = callData eurocToken.TestOperations[2].MvxFaultySCCall = true @@ -268,6 +316,7 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { make(chan error), usdcToken, memeToken, + tadaToken, eurocToken, mexToken, ) @@ -285,6 +334,12 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { memeToken.TestOperations[2].MvxForceSCCall = true ApplyMEMERefundBalances(&memeToken) + tadaToken := GenerateTestTADAToken() + tadaToken.TestOperations[2].MvxSCCallData = nil + tadaToken.TestOperations[2].MvxFaultySCCall = true + tadaToken.TestOperations[2].MvxForceSCCall = true + ApplyTADARefundBalances(&tadaToken) + eurocToken := GenerateTestEUROCToken() eurocToken.TestOperations[2].MvxSCCallData = nil eurocToken.TestOperations[2].MvxFaultySCCall = true @@ -302,6 +357,7 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { make(chan error), usdcToken, memeToken, + tadaToken, eurocToken, mexToken, ) @@ -318,6 +374,11 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { memeToken.TestOperations[2].MvxFaultySCCall = true ApplyMEMERefundBalances(&memeToken) + tadaToken := GenerateTestTADAToken() + tadaToken.TestOperations[2].MvxSCCallData = callData + tadaToken.TestOperations[2].MvxFaultySCCall = true + ApplyTADARefundBalances(&tadaToken) + eurocToken := GenerateTestEUROCToken() eurocToken.TestOperations[2].MvxSCCallData = callData eurocToken.TestOperations[2].MvxFaultySCCall = true @@ -333,6 +394,7 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { make(chan error), usdcToken, memeToken, + tadaToken, eurocToken, mexToken, ) @@ -349,6 +411,11 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { memeToken.TestOperations[2].MvxFaultySCCall = true ApplyMEMERefundBalances(&memeToken) + tadaToken := GenerateTestTADAToken() + tadaToken.TestOperations[2].MvxSCCallData = callData + tadaToken.TestOperations[2].MvxFaultySCCall = true + ApplyTADARefundBalances(&tadaToken) + eurocToken := GenerateTestEUROCToken() eurocToken.TestOperations[2].MvxSCCallData = callData eurocToken.TestOperations[2].MvxFaultySCCall = true @@ -364,6 +431,7 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { make(chan error), usdcToken, memeToken, + tadaToken, eurocToken, mexToken, ) @@ -380,6 +448,11 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { memeToken.TestOperations[2].MvxFaultySCCall = true ApplyMEMERefundBalances(&memeToken) + tadaToken := GenerateTestTADAToken() + tadaToken.TestOperations[2].MvxSCCallData = callData + tadaToken.TestOperations[2].MvxFaultySCCall = true + ApplyTADARefundBalances(&tadaToken) + eurocToken := GenerateTestEUROCToken() eurocToken.TestOperations[2].MvxSCCallData = callData eurocToken.TestOperations[2].MvxFaultySCCall = true @@ -395,6 +468,7 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { make(chan error), usdcToken, memeToken, + tadaToken, eurocToken, mexToken, ) @@ -411,6 +485,11 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { memeToken.TestOperations[2].MvxFaultySCCall = true ApplyMEMERefundBalances(&memeToken) + tadaToken := GenerateTestTADAToken() + tadaToken.TestOperations[2].MvxSCCallData = callData + tadaToken.TestOperations[2].MvxFaultySCCall = true + ApplyTADARefundBalances(&tadaToken) + eurocToken := GenerateTestEUROCToken() eurocToken.TestOperations[2].MvxSCCallData = callData eurocToken.TestOperations[2].MvxFaultySCCall = true @@ -426,6 +505,7 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { make(chan error), usdcToken, memeToken, + tadaToken, eurocToken, mexToken, ) @@ -442,6 +522,11 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { memeToken.TestOperations[2].MvxFaultySCCall = true ApplyMEMERefundBalances(&memeToken) + tadaToken := GenerateTestTADAToken() + tadaToken.TestOperations[2].MvxSCCallData = callData + tadaToken.TestOperations[2].MvxFaultySCCall = true + ApplyTADARefundBalances(&tadaToken) + eurocToken := GenerateTestEUROCToken() eurocToken.TestOperations[2].MvxSCCallData = callData eurocToken.TestOperations[2].MvxFaultySCCall = true @@ -457,6 +542,7 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { make(chan error), usdcToken, memeToken, + tadaToken, eurocToken, mexToken, ) @@ -473,6 +559,11 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { memeToken.TestOperations[2].MvxFaultySCCall = true ApplyMEMERefundBalances(&memeToken) + tadaToken := GenerateTestTADAToken() + tadaToken.TestOperations[2].MvxSCCallData = callData + tadaToken.TestOperations[2].MvxFaultySCCall = true + ApplyTADARefundBalances(&tadaToken) + eurocToken := GenerateTestEUROCToken() eurocToken.TestOperations[2].MvxSCCallData = callData eurocToken.TestOperations[2].MvxFaultySCCall = true @@ -488,6 +579,7 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { make(chan error), usdcToken, memeToken, + tadaToken, eurocToken, mexToken, ) @@ -507,6 +599,11 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { memeToken.TestOperations[2].MvxFaultySCCall = true ApplyMEMERefundBalances(&memeToken) + tadaToken := GenerateTestTADAToken() + tadaToken.TestOperations[2].MvxSCCallData = callData + tadaToken.TestOperations[2].MvxFaultySCCall = true + ApplyTADARefundBalances(&tadaToken) + eurocToken := GenerateTestEUROCToken() eurocToken.TestOperations[2].MvxSCCallData = callData eurocToken.TestOperations[2].MvxFaultySCCall = true @@ -522,6 +619,7 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { make(chan error), usdcToken, memeToken, + tadaToken, eurocToken, mexToken, ) @@ -543,6 +641,11 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { memeToken.TestOperations[2].MvxFaultySCCall = true ApplyMEMERefundBalances(&memeToken) + tadaToken := GenerateTestTADAToken() + tadaToken.TestOperations[2].MvxSCCallData = callData + tadaToken.TestOperations[2].MvxFaultySCCall = true + ApplyTADARefundBalances(&tadaToken) + eurocToken := GenerateTestEUROCToken() eurocToken.TestOperations[2].MvxSCCallData = callData eurocToken.TestOperations[2].MvxFaultySCCall = true @@ -558,6 +661,7 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { make(chan error), usdcToken, memeToken, + tadaToken, eurocToken, mexToken, ) @@ -579,6 +683,11 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { memeToken.TestOperations[2].MvxFaultySCCall = true ApplyMEMERefundBalances(&memeToken) + tadaToken := GenerateTestTADAToken() + tadaToken.TestOperations[2].MvxSCCallData = callData + tadaToken.TestOperations[2].MvxFaultySCCall = true + ApplyTADARefundBalances(&tadaToken) + eurocToken := GenerateTestEUROCToken() eurocToken.TestOperations[2].MvxSCCallData = callData eurocToken.TestOperations[2].MvxFaultySCCall = true @@ -594,6 +703,7 @@ func TestRelayersShouldExecuteTransfersWithRefund(t *testing.T) { make(chan error), usdcToken, memeToken, + tadaToken, eurocToken, mexToken, )