i use all the info in here https://github.com/safe-global/safe-deployments/tree/main/src/assets/v1.4.1 to deploy a new Safe on sepolia.
i use createProxyWithNonce(address _singleton,bytes initializer,uint256 saltNonce)
on the safeProxyFactory, for the params i put:
- _singleton i put the safeL2 address
- to compute the initializer i use the pack "setup" from safe_l2 abi
safeL2abi.Pack("setup", owners, threshold, to, data, fallbackHandler, paymentToken, payment, paymentReceiver)
- and a big Int for the saltNonce
first is it the right one to use, if not what is it? because i got an error on the singleton
constructor(address _singleton) {
require(_singleton != address(0), "Invalid singleton address provided");
singleton = _singleton;
}
tx: https://sepolia.etherscan.io/tx/0x1e22c80dcfa2a9072b2dd849b9ee651ce9f72d23b64afe3f7c2ad96c10ab9ad9
then to what will be the steps to calculate the future target address for the Safe?