Skip to content

Commit

Permalink
fix: Init Safe SDK for replayed safes (#4567)
Browse files Browse the repository at this point in the history
  • Loading branch information
usame-algan authored Nov 27, 2024
1 parent 9382f62 commit 1aa6626
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/coreSDK/safeCoreSDK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import type { SafeInfo } from '@safe-global/safe-gateway-typescript-sdk'
import semverSatisfies from 'semver/functions/satisfies'
import { isValidMasterCopy } from '@/services/contracts/safeContracts'
import { sameAddress } from '@/utils/addresses'
import { isPredictedSafeProps } from '@/features/counterfactual/utils'
import { isPredictedSafeProps, isReplayedSafeProps } from '@/features/counterfactual/utils'

export const isLegacyVersion = (safeVersion: string): boolean => {
const LEGACY_VERSION = '<1.3.0'
Expand Down Expand Up @@ -82,7 +82,7 @@ export const initSafeSDK = async ({
}

if (undeployedSafe) {
if (isPredictedSafeProps(undeployedSafe.props)) {
if (isPredictedSafeProps(undeployedSafe.props) || isReplayedSafeProps(undeployedSafe.props)) {
return Safe.init({
provider: provider._getConnection().url,
isL1SafeSingleton,
Expand Down

0 comments on commit 1aa6626

Please sign in to comment.