Skip to content

Commit

Permalink
update more test files
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinssgh committed Mar 19, 2024
1 parent b1aea69 commit 60550eb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
9 changes: 8 additions & 1 deletion zetaclient/bitcoin/bitcoin_signer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package bitcoin
import (
"encoding/hex"
"fmt"
corecontext "github.com/zeta-chain/zetacore/zetaclient/core_context"
"math"
"math/rand"
"sort"
Expand Down Expand Up @@ -75,7 +76,13 @@ func (s *BTCSignerSuite) SetUpTest(c *C) {
tss := interfaces.TestSigner{
PrivKey: privateKey,
}
s.btcSigner, err = NewBTCSigner(config.BTCConfig{}, &tss, clientcommon.DefaultLoggers(), &metrics.TelemetryServer{})
cfg := config.NewConfig()
s.btcSigner, err = NewBTCSigner(
config.BTCConfig{},
&tss,
clientcommon.DefaultLoggers(),
&metrics.TelemetryServer{},
corecontext.NewZetaCoreContext(cfg))
c.Assert(err, IsNil)
}

Expand Down
2 changes: 2 additions & 0 deletions zetaclient/evm/evm_signer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func getNewEvmSigner() (*Signer, error) {
erc20CustodyAddress := ERC20CustodyAddress
logger := common.ClientLogger{}
ts := &metrics.TelemetryServer{}
cfg := config.NewConfig()
return NewEVMSigner(
corecommon.BscMainnetChain(),
stub.EVMRPCEnabled,
Expand All @@ -41,6 +42,7 @@ func getNewEvmSigner() (*Signer, error) {
config.GetERC20CustodyABI(),
mpiAddress,
erc20CustodyAddress,
corecontext.NewZetaCoreContext(cfg),
logger,
ts)
}
Expand Down
1 change: 1 addition & 0 deletions zetaclient/zetacore_observer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ func CreateCoreContext(evmChain, btcChain common.Chain, evmChainParams, btcChain
evmChainParamsMap,
btcChainParams,
"",
observertypes.CrosschainFlags{},
true,
zerolog.Logger{},
)
Expand Down

0 comments on commit 60550eb

Please sign in to comment.