From 927f2bcbb3b5eaef5958644421fd79461668db56 Mon Sep 17 00:00:00 2001 From: lumtis Date: Wed, 15 Nov 2023 15:33:33 +0100 Subject: [PATCH] use local goerli for smoke tests --- .../localnet/orchestrator/smoketest/test_deposit_eth.go | 8 +++++++- contrib/localnet/orchestrator/smoketest/utils.go | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/contrib/localnet/orchestrator/smoketest/test_deposit_eth.go b/contrib/localnet/orchestrator/smoketest/test_deposit_eth.go index 7585e408fc..60f7118df3 100644 --- a/contrib/localnet/orchestrator/smoketest/test_deposit_eth.go +++ b/contrib/localnet/orchestrator/smoketest/test_deposit_eth.go @@ -151,7 +151,13 @@ func (sm *SmokeTest) TestDepositEtherIntoZRC20() { sm.wg.Add(1) go func() { defer sm.wg.Done() - WaitCctxMinedByInTxHash(signedTx.Hash().Hex(), sm.cctxClient) + cctx := WaitCctxMinedByInTxHash(signedTx.Hash().Hex(), sm.cctxClient) + if cctx.CctxStatus.Status != types.CctxStatus_OutboundMined { + panic(fmt.Sprintf("expected cctx status to be mined; got %s, message: %s", + cctx.CctxStatus.Status.String(), + cctx.CctxStatus.StatusMessage), + ) + } c <- 0 }() sm.wg.Add(1) diff --git a/contrib/localnet/orchestrator/smoketest/utils.go b/contrib/localnet/orchestrator/smoketest/utils.go index d43732dc75..a64f2dce3c 100644 --- a/contrib/localnet/orchestrator/smoketest/utils.go +++ b/contrib/localnet/orchestrator/smoketest/utils.go @@ -163,7 +163,7 @@ func DeploySystemContractsAndZRC20(zetaTxServer ZetaTxServer) error { _, err = zetaTxServer.BroadcastTx(FungibleAdminName, fungibletypes.NewMsgDeployFungibleCoinZRC20( FungibleAdminAddress, "", - common.GoerliChain().ChainId, + common.GoerliLocalnetChain().ChainId, 18, "ETH", "gETH", @@ -194,7 +194,7 @@ func DeploySystemContractsAndZRC20(zetaTxServer ZetaTxServer) error { _, err = zetaTxServer.BroadcastTx(FungibleAdminName, fungibletypes.NewMsgDeployFungibleCoinZRC20( FungibleAdminAddress, usdtAddr, - common.GoerliChain().ChainId, + common.GoerliLocalnetChain().ChainId, 6, "USDT", "USDT",