Skip to content

Commit

Permalink
fix: Rename useSafe hook's return type to UseSafeReturnType
Browse files Browse the repository at this point in the history
  • Loading branch information
tmjssz committed Oct 16, 2024
1 parent 3b13099 commit 7878022
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/useSafe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
import { MissingSafeProviderError } from '@/errors/MissingSafeProviderError.js'
import { SafeContext } from '@/SafeContext.js'

export type UseReturnType = UseConnectSignerReturnType & {
export type UseSafeReturnType = UseConnectSignerReturnType & {
isInitialized: boolean
getBalance: typeof useBalance
getChain: typeof useChain
Expand All @@ -28,7 +28,7 @@ export type UseReturnType = UseConnectSignerReturnType & {
* Top-level hook to get Safe-related information.
* @returns Object wrapping the Safe hooks.
*/
export function useSafe(): UseReturnType {
export function useSafe(): UseSafeReturnType {
const { isInitialized, config } = useContext(SafeContext)

if (!config) {
Expand Down

0 comments on commit 7878022

Please sign in to comment.