Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confused in the initalization function. #6

Open
varshney565 opened this issue Jul 25, 2024 · 0 comments
Open

Confused in the initalization function. #6

varshney565 opened this issue Jul 25, 2024 · 0 comments

Comments

@varshney565
Copy link

    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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant