Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin' into status-code-update-c
Browse files Browse the repository at this point in the history
  • Loading branch information
ricantar committed May 16, 2024
2 parents cce6c96 + 8eba803 commit d4af470
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion relayer/relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check failure on line 38 in relayer/relayer.go

View workflow job for this annotation

GitHub Actions / Test

undefined: provider.RelayOutputErr
}

// Signer interface representing signer functions necessary for Relayer Package
Expand Down
4 changes: 2 additions & 2 deletions relayer/relayer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit d4af470

Please sign in to comment.