Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

Confused in the initalization function. #6

@varshney565

Description

@varshney565
    function initialize(address _admin, address _polygonZkEVMBridge, address _counterpartContract, uint32 _counterpartNetwork, address _originTokenAddress, address _wrappedTokenAddress)
        public
        virtual
        initializer
    {
        // Inits
        __AccessControlDefaultAdminRules_init(3 days, _admin);
        __UUPSUpgradeable_init();
        __Pausable_init();
        __PolygonERC20BridgeBase_init(_polygonZkEVMBridge, _counterpartContract, _counterpartNetwork);

        // Set storage
        L2EscrowStorage storage $ = _getL2EscrowStorage();
        $.originTokenAddress = _originTokenAddress;
        $.wrappedTokenAddress = IL2Token(_wrappedTokenAddress);
    }

In above code snippet of L1escrow contract what does counterpartContractaddress, origintokenAdderess, countpartNetwork means ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions