Skip to content

Commit

Permalink
fix init chain
Browse files Browse the repository at this point in the history
  • Loading branch information
nkitlabs committed Oct 29, 2024
1 parent 4717cd6 commit c9c4d16
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion relayer/chains/evm/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ func NewEVMChainProvider(

// Connect connects to the EVM chain.
func (cp *EVMChainProvider) Init(ctx context.Context) error {
return cp.Client.Connect(ctx)
// TODO: implement loading private key from store

return nil
}

// QueryTunnelInfo queries the tunnel info from the tunnel router contract.
Expand All @@ -66,6 +68,10 @@ func (cp *EVMChainProvider) QueryTunnelInfo(
tunnelID uint64,
tunnelDestinationAddr string,
) (*types.Tunnel, error) {
if err := cp.Client.Connect(ctx); err != nil {
return nil, err
}

addr, err := HexToAddress(tunnelDestinationAddr)
if err != nil {
return nil, err
Expand Down

0 comments on commit c9c4d16

Please sign in to comment.