Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: move getRemainingRelays to a service #1839

Merged
merged 2 commits into from
Apr 4, 2023

Conversation

katspaugh
Copy link
Member

What it solves

Part of #1838.

How this PR fixes it

I've moved the remaining relays call to the service.

@katspaugh katspaugh requested a review from iamacook April 4, 2023 07:37
@github-actions
Copy link

github-actions bot commented Apr 4, 2023

Branch preview

✅ Deploy successful!

https://relaying_service--webcore.review-web-core.5afe.dev

@github-actions
Copy link

github-actions bot commented Apr 4, 2023

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

throw new Error(`${res.status} - ${res.statusText}: ${errorData?.error?.message}`)
}

export const getRemainingRelays = async (chainId: string, address: string): Promise<number> => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: now this is here, can we rename this file to relaying.ts or something similar?

@iamacook
Copy link
Member

iamacook commented Apr 4, 2023

I just noticed that the tests are also failing.

@katspaugh katspaugh requested a review from iamacook April 4, 2023 08:17
Comment on lines +65 to +68
export const SAFE_RELAY_SERVICE_URL_PRODUCTION =
process.env.NEXT_PUBLIC_SAFE_RELAY_SERVICE_URL_PRODUCTION || 'https://safe-client-nest.safe.global/v1/relay'
export const SAFE_RELAY_SERVICE_URL_STAGING =
process.env.NEXT_PUBLIC_SAFE_RELAY_SERVICE_URL_STAGING || 'https://safe-client-nest.staging.5afe.dev/v1/relay'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll rename them in the Github secrets after the release.

@katspaugh katspaugh changed the base branch from dev to tx-refactor April 4, 2023 09:34
@katspaugh katspaugh merged commit 810a22a into tx-refactor Apr 4, 2023
@katspaugh katspaugh deleted the relaying-service branch April 4, 2023 14:10
@github-actions github-actions bot locked and limited conversation to collaborators Apr 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants