When I try to use script/DeployL2.s.sol to deploy contracts, I find something weird, in this script, the code to deploy contract KeyGateway is:
addrs.keyGateway = register(
"KeyGateway",
params.salts.keyGateway,
type(KeyGateway).creationCode,
abi.encode(addrs.keyRegistry, addrs.storageRegistry, params.initialKeyRegistryOwner)
);
And I find in the contract src/KeyGateway.sol, it only needs two constructor parameters like this:
constructor(
address _keyRegistry,
address _initialOwner
) Guardians(_initialOwner) EIP712("Farcaster KeyGateway", "1") {
keyRegistry = IKeyRegistry(_keyRegistry);
}
When I try to use
script/DeployL2.s.solto deploy contracts, I find something weird, in this script, the code to deploy contractKeyGatewayis:And I find in the contract
src/KeyGateway.sol, it only needs two constructor parameters like this: