Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmatudor committed Jan 14, 2025
1 parent 47e044c commit 2105061
Showing 1 changed file with 13 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ func TestRelayersShouldExecuteTransfers(t *testing.T) {
make(chan error),
GenerateTestUSDCToken(),
GenerateTestMEMEToken(),
GenerateTestTADAToken(),
)
}

Expand All @@ -46,6 +45,7 @@ func TestRelayersShouldExecuteTransfersWithMintBurnTokens(t *testing.T) {
make(chan error),
GenerateTestEUROCToken(),
GenerateTestMEXToken(),
GenerateTestTADAToken(),
)
}

Expand All @@ -70,23 +70,18 @@ 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(
testSetup,
37,
usdcToken.AbstractTokenIdentifier,
memeToken.AbstractTokenIdentifier,
tadaToken.AbstractTokenIdentifier,
)
}

Expand All @@ -102,18 +97,23 @@ 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(
testSetup,
37,
eurocToken.AbstractTokenIdentifier,
mexToken.AbstractTokenIdentifier,
tadaToken.AbstractTokenIdentifier,
)
}

Expand Down Expand Up @@ -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,
)
}

Expand All @@ -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,
)
}

Expand Down

0 comments on commit 2105061

Please sign in to comment.