From 76ac1ef81701d4d79791b91b7713447c6f5cd7e2 Mon Sep 17 00:00:00 2001 From: skosito Date: Thu, 7 Mar 2024 21:06:19 +0100 Subject: [PATCH] Fixes after merge --- zetaclient/evm/evm_signer_test.go | 2 +- zetaclient/evm/inbounds_test.go | 8 ++++---- zetaclient/testutils/testdata.go | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/zetaclient/evm/evm_signer_test.go b/zetaclient/evm/evm_signer_test.go index e685128902..711db544d1 100644 --- a/zetaclient/evm/evm_signer_test.go +++ b/zetaclient/evm/evm_signer_test.go @@ -52,7 +52,7 @@ func getNewEvmChainClient() (*ChainClient, error) { tss := stub.NewTSSMainnet() evmcfg := config.EVMConfig{Chain: corecommon.BscMainnetChain(), Endpoint: "http://localhost:8545"} - cfg.EVMChainConfigs[corecommon.BscMainnetChain().ChainId] = &evmcfg + cfg.EVMChainConfigs[corecommon.BscMainnetChain().ChainId] = evmcfg coreCTX := corecontext.NewZetaCoreContext(cfg) appCTX := appcontext.NewAppContext(coreCTX, cfg) diff --git a/zetaclient/evm/inbounds_test.go b/zetaclient/evm/inbounds_test.go index f34575ee1d..472cdc65ae 100644 --- a/zetaclient/evm/inbounds_test.go +++ b/zetaclient/evm/inbounds_test.go @@ -256,8 +256,8 @@ func TestEVM_BuildInboundVoteMsgForDepositedEvent(t *testing.T) { sender := ethcommon.HexToAddress(tx.From) // create test compliance config - cfg := &config.Config{ - ComplianceConfig: &config.ComplianceConfig{}, + cfg := config.Config{ + ComplianceConfig: config.ComplianceConfig{}, } t.Run("should return vote msg for archived Deposited event", func(t *testing.T) { @@ -302,8 +302,8 @@ func TestEVM_BuildInboundVoteMsgForTokenSentToTSS(t *testing.T) { // create test compliance config ob := MockEVMClient(common.EthChain(), nil, 1, stub.MockChainParams(1, 1)) - cfg := &config.Config{ - ComplianceConfig: &config.ComplianceConfig{}, + cfg := config.Config{ + ComplianceConfig: config.ComplianceConfig{}, } t.Run("should return vote msg for archived gas token transfer to TSS", func(t *testing.T) { diff --git a/zetaclient/testutils/testdata.go b/zetaclient/testutils/testdata.go index 8918476217..0676824514 100644 --- a/zetaclient/testutils/testdata.go +++ b/zetaclient/testutils/testdata.go @@ -50,8 +50,8 @@ func LoadObjectFromJSONFile(obj interface{}, filename string) error { return decoder.Decode(&obj) } -func ComplianceConfigTest() *config.ComplianceConfig { - return &config.ComplianceConfig{ +func ComplianceConfigTest() config.ComplianceConfig { + return config.ComplianceConfig{ RestrictedAddresses: []string{RestrictedEVMAddressTest, RestrictedBtcAddressTest}, } }