From 03612098f79912876f0f07ea686b279ee5bd865c Mon Sep 17 00:00:00 2001 From: Nick Corin Date: Tue, 9 Jul 2024 06:35:47 +0200 Subject: [PATCH] [BCI-3438] Add stub chain writer method onto starknet relayer (#475) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- relayer/pkg/chainlink/relay.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/relayer/pkg/chainlink/relay.go b/relayer/pkg/chainlink/relay.go index ad4354931..8ef911bba 100644 --- a/relayer/pkg/chainlink/relay.go +++ b/relayer/pkg/chainlink/relay.go @@ -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") }