Skip to content

Commit

Permalink
an attempt to fix the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mmv08 committed Mar 6, 2024
1 parent d355e21 commit 3f4f4b0
Show file tree
Hide file tree
Showing 4 changed files with 18,157 additions and 3,117 deletions.
2 changes: 1 addition & 1 deletion modules/4337/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
},
"overrides": {
"@safe-global/safe-contracts": {
"ethers": "^6.8.0"
"ethers": "^6.11.0"
}
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion modules/passkey/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
},
"overrides": {
"@safe-global/safe-contracts": {
"ethers": "^6.8.0"
"ethers": "^6.11.0"
}
},
"dependencies": {
Expand Down
7 changes: 4 additions & 3 deletions modules/passkey/src/deploy/safe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ import SafeL2 from '@safe-global/safe-contracts/build/artifacts/contracts/SafeL2
import Safe4337Module from '@safe-global/safe-erc4337/build/artifacts/contracts/Safe4337Module.sol/Safe4337Module.json'
import SafeModuleSetup from '@safe-global/safe-erc4337/build/artifacts/contracts/SafeModuleSetup.sol/SafeModuleSetup.json'
import { DeployFunction } from 'hardhat-deploy/types'
import { LAUNCHPAD_DEPLOYMENT_ENTRY_POINT_ADDRESS } from '../constants'

const deploy: DeployFunction = async ({ deployments, getNamedAccounts, network }) => {
if (!network.tags.safe && !network.tags.test) {
return
}

const entryPoint = await deployments.getOrNull('EntryPoint')
const entryPoint = (await deployments.getOrNull('EntryPoint').then((d) => d?.address)) || LAUNCHPAD_DEPLOYMENT_ENTRY_POINT_ADDRESS
if (!entryPoint) {
throw new Error('EntryPoint is not deployed')
throw new Error('Entry point contract should be deployed or set in LAUNCHPAD_DEPLOYMENT_ENTRY_POINT_ADDRESS')
}

const { deployer } = await getNamedAccounts()
Expand Down Expand Up @@ -49,7 +50,7 @@ const deploy: DeployFunction = async ({ deployments, getNamedAccounts, network }
await deploy('Safe4337Module', {
from: deployer,
contract: Safe4337Module,
args: [entryPoint.address],
args: [entryPoint],
log: true,
deterministicDeployment: true,
})
Expand Down
Loading

0 comments on commit 3f4f4b0

Please sign in to comment.