AA14 initCode must return sender
AA14 initCode must return sender is an ERC-4337 EntryPoint error that means the initCode deployed a smart account at a different address than the user operation's sender.
The address of the smart account deployed with the initCode provided does not match match the sender address provided in the user operation.
Possible solutions
- Verify that the
senderaddress was generated deterministically from theinitCode. (consider leveraging functions like getSenderAddress) - Verify that the factory address in the
initCodeis correct (the factory address is the first 20 bytes of theinitCode). - Verify that the
initCodeis correct. - If all else fails, investigate why the
initCodedeploys to a different address than expected using tools like Tenderly.