This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Description
4337 Account creation flow looks like this:
- create a UserOp with
sender == your precomputed wallet address
initCode == contractFactoryAddress+encodedConstructorParameters
The entrypoint will call the given contractFactoryAddress with the given encodedConstructorParameters.
The wallet address can be precomputed with:
const accountAddress = ethers.utils.getCreate2Address(
contractFactoryAddress,
salt,
scBridgeWalletContractBytecodeHash
);
To do: