Skip to main content
Share Your Experience: Take the 2024 Developer Survey
5 votes

Why is Bitwise AND operator used for comparing singleton address and 0xfff... in GnosisSafeProxy.sol

General objective of doing this and operation is to get extract the 20 bytes address with in a 32 bytes slot. There can be packed values with the address to clean up this is needed. The following ...
Tashun Sandaru's user avatar
3 votes

Create a new Safe from another contract

a simple example can be found in the Safe Factories repository. The more tricky part will be to encode the setup data to set the correct modules. The easiest is to encode 2 enableModule transactions ...
Richard's user avatar
  • 4,994
3 votes
Accepted

Creating safe AA wallet from python

You can use the safe-eth-py library and the associated docs here: https://safe-eth-py.readthedocs.io/en/latest/quickstart.html The docs are linked from the official GitHub repository for the project ...
Tanay Pant's user avatar
2 votes

Why do different chains have different network addresses in Gnosis Safe proxy factory?

you need to take the exact parameters from the transaction of the first deplo. open the same address (if there is one) of the safe factory in another network and in the method deploy with nonce send ...
rsivakov's user avatar
2 votes

Is it possible to integrate GSN OpenGSN v2 meta-transactions into Gnosis Safe smart contracts?

I am not pretty sure how to integrate open gsn2 into a Gnosis Safe contract, yet Safe has released the relay-kit that uses Gelato Relay under the hood to sponsor the transaction going through the safe....
donoso.eth's user avatar
  • 1,493
2 votes
Accepted

Problem with propose a custom transaction (for ERC-20 token)

There is a few things that might cause your problem, an incorrect transaction data or an incorrect environment setup, first verify that safeAddress and tokenAddress are correct, then check that the ...
Saxtheowl's user avatar
  • 668
2 votes

Is there a recommended pattern to add multiple 4337-compatible modules to a safe?

An example of such a routing fallback handler can be found here (if the link is dead, google CoW ExtensibleFallbackHandler.sol). More details are available in this blog post. This fallback handler ...
mikheevm's user avatar
  • 1,075
2 votes

Bridged from a zkSync Safe Wallet to a non-existing Base Safe Wallet

Stay calm, my friend. I believe it's possible to recover your funds. I'm assuming you've used the app.safe.global wallet, which is a smart contract, to send funds to a base chain at the same address. ...
Alexander's user avatar
  • 131
2 votes

Need Help: Accidentally Sent ETH to Wrong Network (Arbitrum Safe)

I understand this must be a stressful situation, fortunately you should be able to recover your funds. Since Artbitrum is EVM-based, you will be able to deploy a Safe on Ethereum with the address of ...
Louis - Safe Core Team's user avatar
1 vote
Accepted

SAFE transaction API EIP-712 Hash doesn't match other wallets hash

I was able to solve this by removing the salt and version from the domain. Seems like the SAFE API doesn't properly handle these in the domain.
Geoffrey Furth's user avatar
1 vote
Accepted

EIP-1271 signatures with Gnosis Safe off-chain

After going through their codebase the problem seems to be that Safe Transaction Service is still trying to call the old EIP-1271 interface isValidSignature(bytes,bytes) instead of isValidSignature(...
Ahmet Yazıcı's user avatar
1 vote

EIP-1271 signatures with Gnosis Safe off-chain

Safe natively supports EIP-1271 signatures. This page provides examples for signing, verifying, remotely fetching and troobleshooting EIP-1271 signatures. You can also find more information on the ...
Louis - Safe Core Team's user avatar
1 vote

deploySafe function transaction is stuck in txpool as pending on Polygon Mainnet

A stuck transaction happens because network operators are not incentivized enough to move your transaction from the mempool to include it in a block. Maybe resending the same transaction with more gas ...
Louis - Safe Core Team's user avatar
1 vote

Sent assets on Ethereum to a zkSync Safe address

For now, since ZkSync and the EVM differ in how they calculate addresses, this is not possible. I haven't see any news of ZkSync converging to the same derivation method used in the EVM, so unless ...
Louis - Safe Core Team's user avatar
1 vote

Error Signing Terms of Service issue of Safe Wallet

Looks like this question relates to Safe{Wallet}, not Safe{Core}. Feel free to reach out to https://help.safe.global for topics related to our UI! Hope it helps, Louis
Louis - Safe Core Team's user avatar
1 vote

Safe UI cannot show transaction history for a local setup

Looks like this question relates to Safe{Wallet}, not Safe{Core}. Feel free to reach out to https://help.safe.global for topics related to our UI! Hope it helps, Louis
Louis - Safe Core Team's user avatar
1 vote

Gnosis Safe 1.3.0 created using createProxy method cannot accept NFTs

The Gnosis Safe contract does not implement the IERC721Receiver interface, which must be implemented by smart contract that receives NFTs if you want to use the safeTransferFrom function. see: https:/...
Tomiwa's user avatar
  • 155
1 vote
Accepted

How can i simulate a gnosis-safe transaction?

This is indeed tricky and not really possible with Tenderly right now. You can only simulate it as soon as you have all but the last confirmation. In this case the last confirmation can be simulated ...
Richard's user avatar
  • 4,994
1 vote
Accepted

Is there a recommended pattern to add multiple 4337-compatible modules to a safe?

You are right, this would create problems. Currently, you can only have one 4337 module, as it would create routing problems with the default fallback handler. If you change it to a dedicated "...
Louis - Safe Core Team's user avatar
1 vote

How to resolve the safe-cli error "Cannot find enough owners to sign." when trying to transfer an erc-721 NFT

You need to first load a private key corresponding to the owner of your Safe: > load_cli_owners <account_private_key> Loaded account 0xab...cd with balance=123 ether Set account 0xab..cd as ...
Louis - Safe Core Team's user avatar
1 vote

Inquiry Regarding Account Abstraction and Safe Gnosis Wallet Integration

You can use safeAuth to link one (or multiple) accounts to a single Safe wallet, and use the salt parameter so that you can deploy the same safe for multiple accounts. Hope it helps, Louis
Louis - Safe Core Team's user avatar
1 vote

Recovering assets on ZKsync Gnosis Safe

For now, since ZkSync and the EVM differ in how they calculate addresses, this is not possible. I haven't see any news of ZkSync converging to the same derivation method used in the EVM, so unless ...
Louis - Safe Core Team's user avatar
1 vote

Safe transactions are getting failed when executed through relay(Sponsored Call)

GS020 error means that there are not enough signatures sent to the contract: When the error is thrown: https://github.com/safe-global/safe-contracts/blob/f03dfae65fd1d085224b00a10755c509a4eaacfe/...
Germán's user avatar
  • 688
1 vote

How do I know on-chain if a target address is a Safe?

There is no isSafe method (or equivalent) you could call in the contracts to identify them on-chain, however you could scale the solution you mentioned to include at least the 5 main releases of the ...
Louis - Safe Core Team's user avatar
1 vote
Accepted

differences between createTransaction and createTransactionBatch (@safe-global/protocol-kit)

Using createTransaction is recommended as createTransactionBatch will probably be moved to a utils file
Germán's user avatar
  • 688
1 vote
Accepted

How non owner can execute signed transaction hash in safe?

That is correct and it also applies to the Safe{Core} SDK. The params are the ones you defined, just the safeTransaction, but make sure that the object contains all the signatures from the owners ...
Germán's user avatar
  • 688
1 vote

How to Deploy any ERC-20 Smart Contract using Safe-Core SDK from Safe Address(gas less)

To deploy any contract from a Safe, you need to create a transaction that calls the CreateCall contract that is deployed on these addresses depending on the network: https://github.com/safe-global/...
Germán's user avatar
  • 688
1 vote

SAFE Module execution in a Smart Contract

Where is that error thrown? It would be helpful if you could share the Tenderly link with the simulation of the transaction so it can be debugged.
Germán's user avatar
  • 688
1 vote

Cannot create the same Safe address on Avalanche C-Chain

The version of the Safe used for mainnet is not compatible with side chains, so you need to use other tools like https://github.com/5afe/safe-cli to get the funds out. More info: https://help.safe....
Uxío's user avatar
  • 431
1 vote
Accepted

How to setup Module without Safe transaction using setup function

An easy way is to use the multisend contract with the setup method. As the setup method is performing a delegate call to to this can be used to perform multiple "sub" setup calls. This can ...
Richard's user avatar
  • 4,994

Only top scored, non community-wiki answers of a minimum length are eligible