diff --git a/relayer/relayer.go b/relayer/relayer.go index 4005359..e8a5e0b 100644 --- a/relayer/relayer.go +++ b/relayer/relayer.go @@ -35,7 +35,7 @@ var ( // Provider interface representing provider functions necessary for Relayer Package type Provider interface { - RelayWithCtx(ctx context.Context, rpcURL string, input *provider.RelayInput, options *provider.RelayRequestOptions) (*provider.RelayOutput, error) + RelayWithCtx(ctx context.Context, rpcURL string, input *provider.RelayInput, options *provider.RelayRequestOptions) (*provider.RelayOutput, *provider.RelayOutputErr) } // Signer interface representing signer functions necessary for Relayer Package diff --git a/relayer/relayer_test.go b/relayer/relayer_test.go index b0f4da7..70fa519 100644 --- a/relayer/relayer_test.go +++ b/relayer/relayer_test.go @@ -79,7 +79,7 @@ func TestRelayer_Relay(t *testing.T) { mock.AddMockedResponseFromFile(http.MethodPost, fmt.Sprintf("%s%s", "https://dummy.com", provider.ClientRelayRoute), http.StatusBadRequest, "../provider/samples/client_relay_error.json") - var error *provider.RelayError + var error error relay, err = relayer.Relay(input, nil) c.ErrorAs(err, &error) @@ -164,7 +164,7 @@ func TestRelayer_RelayWithCtx(t *testing.T) { mock.AddMockedResponseFromFile(http.MethodPost, fmt.Sprintf("%s%s", "https://dummy.com", provider.ClientRelayRoute), http.StatusBadRequest, "../provider/samples/client_relay_error.json") - var error *provider.RelayError + var error error relay, err = relayer.RelayWithCtx(context.Background(), input, nil) c.ErrorAs(err, &error)