After we removed the EthAdapter, the provider can get a rpcUrl as parameter. In the Safe4337Pack we needed the rpcUrl for other tasks, but currently it may happen that we have to set the rpcUrl to 2 parameters when calling the init
Proposed solution
The rpcUrl parameter is only used to initialize a publicClient in order to get the entrypoint contract to fetch the nonce. The safeProvider that we initialize with the provider parameter should be able to do this kind of query, removing the need to pass an specific rpcUrl
Context / issue
After we removed the EthAdapter, the provider can get a rpcUrl as parameter. In the Safe4337Pack we needed the rpcUrl for other tasks, but currently it may happen that we have to set the rpcUrl to 2 parameters when calling the init
Proposed solution
The rpcUrl parameter is only used to initialize a
publicClient
in order to get the entrypoint contract to fetch the nonce. The safeProvider that we initialize with the provider parameter should be able to do this kind of query, removing the need to pass an specific rpcUrl