Skip to content

Commit

Permalink
[BCI-3438] Add stub chain writer method onto starknet relayer (#475)
Browse files Browse the repository at this point in the history
* starknet: Add stub method onto starknet relayer

* starknet: Add ctx into NewChainWriter method

* starket: Reset go mods

* starknet: Fix return type of chain writer constructor

---------

Co-authored-by: Blaž Hrastnik <[email protected]>
  • Loading branch information
nickcorin and archseer authored Jul 9, 2024
1 parent 800e241 commit 0361209
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions relayer/pkg/chainlink/relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ func (r *relayer) HealthReport() map[string]error {
return map[string]error{r.Name(): r.Healthy()}
}

func (r *relayer) NewChainWriter(_ context.Context, _ []byte) (relaytypes.ChainWriter, error) {
return nil, errors.New("chain writer is not supported for starknet")
}

func (r *relayer) NewContractReader(_ []byte) (relaytypes.ContractReader, error) {
return nil, errors.New("contract reader is not supported for starknet")
}
Expand Down

0 comments on commit 0361209

Please sign in to comment.