UNPKG

@etherspot/contracts

Version:

Etherspot Solidity contracts

19 lines (18 loc) 604 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const func = async (hre) => { const { deployments: { get, log, execute, read }, getNamedAccounts, } = hre; const { from } = await getNamedAccounts(); if (await read('WrappedWeiToken', 'isInitialized')) { log('WrappedWeiToken already initialized'); } else { const gateway = await get('Gateway'); await execute('WrappedWeiToken', { from, log: true, }, 'initialize', [], gateway.address); } }; func.tags = ['setup', 'tokens']; module.exports = func;