Skip to content

Commit

Permalink
fix:sent failed
Browse files Browse the repository at this point in the history
  • Loading branch information
constwz committed Nov 3, 2023
1 parent 386d85a commit f046faf
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/hooks/coreSDK/safeCoreSDK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,17 @@ export const initSafeSDK = async ({
const isL2SafeMasterCopy = masterCopy === safeL2Deployment?.networkAddresses[chainId]

// Unknown deployment, which we do not want to support
if (!isL1SafeMasterCopy && !isL2SafeMasterCopy) {
return Promise.resolve(undefined)
}
// if (!isL1SafeMasterCopy && !isL2SafeMasterCopy) {
// return Promise.resolve(undefined)
// }
}

// Legacy Safe contracts
if (isLegacyVersion(safeVersion)) {
isL1SafeMasterCopy = true
}
// if (isLegacyVersion(safeVersion)) {
// isL1SafeMasterCopy = true
// }

isL1SafeMasterCopy = false

return Safe.create({
ethAdapter: createReadOnlyEthersAdapter(provider),
Expand Down

0 comments on commit f046faf

Please sign in to comment.