Skip to content

Commit

Permalink
Merge pull request #15 from eternalsafe/fix/guard-not-set
Browse files Browse the repository at this point in the history
fix: guard not set or unsupported
  • Loading branch information
devanoneth authored Aug 6, 2024
2 parents 616a4f2 + 89729ee commit 4422fdd
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install dependencies
uses: ./.github/workflows/yarn
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install dependencies
uses: ./.github/workflows/yarn
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nextjs-bundle-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install dependencies
uses: ./.github/workflows/yarn
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install dependencies
uses: ./.github/workflows/yarn
Expand Down
4 changes: 3 additions & 1 deletion src/components/new-safe/load/steps/SafeOwnerStep/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ const SafeOwnerStep = ({ data, onSubmit, onBack }: StepRenderProps<LoadSafeFormD
</>
) : error ? (
<>
<ErrorMessage>Error loading Safe owners, please try again or change your RPC URL.</ErrorMessage>
<ErrorMessage error={error}>
Error loading Safe owners, please try again or change your RPC URL.
</ErrorMessage>
</>
) : (
fields.map((field, index) => <OwnerRow key={field.id} index={index} groupName="owners" readOnly />)
Expand Down
4 changes: 2 additions & 2 deletions src/hooks/loadables/useLoadSafeInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const getSafeInfo = async (sdk: Safe, implementation: string): Promise<Sa
sdk.getThreshold(),
sdk.getOwners(),
sdk.getModules(),
sdk.getGuard(),
sdk.getGuard().catch(console.error),
sdk.getFallbackHandler(),
sdk.getContractVersion(),
])
Expand All @@ -51,7 +51,7 @@ export const getSafeInfo = async (sdk: Safe, implementation: string): Promise<Sa
implementationVersionState,

modules: modules.map(addressEx),
guard: addressEx(guard),
guard: guard ? addressEx(guard) : null,
fallbackHandler: addressEx(fallbackHandler),
version,

Expand Down

0 comments on commit 4422fdd

Please sign in to comment.