Skip to content

Commit

Permalink
Merge pull request #8 from bnb-chain/feat-pancake-address
Browse files Browse the repository at this point in the history
fix:sent failed
  • Loading branch information
constwz authored Nov 7, 2023
2 parents 109ae91 + f046faf commit 48eab43
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 48eab43

Please sign in to comment.