Skip to content

bug: Mismatch constructor parameters in script and contract #415

@Skyge

Description

@Skyge

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);
    }

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions