Skip to content

Commit

Permalink
Fixes after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito committed Mar 7, 2024
1 parent 1c77673 commit 76ac1ef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion zetaclient/evm/evm_signer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
8 changes: 4 additions & 4 deletions zetaclient/evm/inbounds_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions zetaclient/testutils/testdata.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
}
}
Expand Down

0 comments on commit 76ac1ef

Please sign in to comment.