safe-global / safe-smart-account

Safe allows secure management of blockchain assets.
https://safe.global
GNU Lesser General Public License v3.0
1.84k stars 907 forks source link

Deploying to a local Ethereum Client (Ganache) #569

Closed imnotanoob closed 1 year ago

imnotanoob commented 1 year ago

Hi, I'm trying to deploy the gnosis safe contract locally. I have a Ganache Ethereum Client running locally. I've tried yarn deploy-all custom pointing to my local ganache instance,

but keep getting:

Error: ERROR processing /Users/vikrambaid/Desktop/Fountain/safe-contracts/src/deploy/deploy_accessors.ts:
Error: 
        Safe factory not found for network 1337. You can request a new deployment at https://github.com/safe-global/safe-singleton-factory.
        For more information, see https://github.com/safe-global/safe-contracts#replay-protection-eip-155

My .env variable:

# Used for custom network
NODE_URL="http://127.0.0.1:7545"
PK="0xa2..."
mmv08 commented 1 year ago

You need to deploy the factory to the Ganache network. The repo is mentioned in the error message. You can also turn off the deterministic deployment that requires the factory in the hardhat config.