From c2da535e97af3d47276e0afa1b7fe518bd548c01 Mon Sep 17 00:00:00 2001 From: Tanmay Date: Thu, 8 Aug 2024 22:42:57 -0400 Subject: [PATCH] generate --- e2e/e2etests/test_migrate_tss.go | 1 + e2e/runner/update_contracts.go | 4 +- testutil/keeper/mocks/crosschain/observer.go | 40 -------------------- 3 files changed, 2 insertions(+), 43 deletions(-) diff --git a/e2e/e2etests/test_migrate_tss.go b/e2e/e2etests/test_migrate_tss.go index 8063a2154b..d3ff74cb2f 100644 --- a/e2e/e2etests/test_migrate_tss.go +++ b/e2e/e2etests/test_migrate_tss.go @@ -11,6 +11,7 @@ import ( "github.com/btcsuite/btcutil" "github.com/ethereum/go-ethereum/common" "github.com/stretchr/testify/require" + "github.com/zeta-chain/zetacore/e2e/runner" "github.com/zeta-chain/zetacore/e2e/utils" "github.com/zeta-chain/zetacore/pkg/chains" diff --git a/e2e/runner/update_contracts.go b/e2e/runner/update_contracts.go index 6d4b184061..8b357a01f5 100644 --- a/e2e/runner/update_contracts.go +++ b/e2e/runner/update_contracts.go @@ -5,11 +5,11 @@ import ( "github.com/ethereum/go-ethereum/accounts/abi/bind" "github.com/stretchr/testify/require" + "github.com/zeta-chain/zetacore/e2e/utils" ) func (r *E2ERunner) UpdateTssAddressForConnector() { - require.NoError(r, r.SetTSSAddresses()) tx, err := r.ConnectorEth.UpdateTssAddress(r.EVMAuth, r.TSSAddress) @@ -21,11 +21,9 @@ func (r *E2ERunner) UpdateTssAddressForConnector() { tssAddressOnConnector, err := r.ConnectorEth.TssAddress(&bind.CallOpts{Context: r.Ctx}) require.NoError(r, err) require.Equal(r, r.TSSAddress, tssAddressOnConnector) - } func (r *E2ERunner) UpdateTssAddressForErc20custody() { - require.NoError(r, r.SetTSSAddresses()) tx, err := r.ERC20Custody.UpdateTSSAddress(r.EVMAuth, r.TSSAddress) diff --git a/testutil/keeper/mocks/crosschain/observer.go b/testutil/keeper/mocks/crosschain/observer.go index 63789912ce..c90c15c3a6 100644 --- a/testutil/keeper/mocks/crosschain/observer.go +++ b/testutil/keeper/mocks/crosschain/observer.go @@ -604,46 +604,6 @@ func (_m *CrosschainObserverKeeper) GetSupportedChains(ctx types.Context) []chai return r0 } -// GetSupportedForeignChains provides a mock function with given fields: ctx -func (_m *CrosschainObserverKeeper) GetSupportedForeignChains(ctx types.Context) []chains.Chain { - ret := _m.Called(ctx) - - if len(ret) == 0 { - panic("no return value specified for GetSupportedForeignChains") - } - - var r0 []chains.Chain - if rf, ok := ret.Get(0).(func(types.Context) []chains.Chain); ok { - r0 = rf(ctx) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]chains.Chain) - } - } - - return r0 -} - -// GetSupportedForeignChainsByConsensus provides a mock function with given fields: ctx, consensus -func (_m *CrosschainObserverKeeper) GetSupportedForeignChainsByConsensus(ctx types.Context, consensus chains.Consensus) []chains.Chain { - ret := _m.Called(ctx, consensus) - - if len(ret) == 0 { - panic("no return value specified for GetSupportedForeignChainsByConsensus") - } - - var r0 []chains.Chain - if rf, ok := ret.Get(0).(func(types.Context, chains.Consensus) []chains.Chain); ok { - r0 = rf(ctx, consensus) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]chains.Chain) - } - } - - return r0 -} - // GetTSS provides a mock function with given fields: ctx func (_m *CrosschainObserverKeeper) GetTSS(ctx types.Context) (observertypes.TSS, bool) { ret := _m.Called(ctx)