/
eb
/
project_web3.0
Обзор
Документация
Войти
/
eb
/
project_web3.0
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
smart_contract/scripts/deploy.js
20 строк
457 B
Adrian Hajdin - JavaScript Mastery
initial commit
22 дек 2021, 22:07
22 дек 2021, 22:07
772b11f
Код
Авторство
О чём код?
const main = async () => { const transactionsFactory = await hre.ethers.getContractFactory("Transactions"); const transactionsContract = await transactionsFactory.deploy(); await transactionsContract.deployed(); console.log("Transactions address: ", transactionsContract.address); }; const runMain = async () => { try { await main(); process.exit(0); } catch (error) { console.error(error); process.exit(1); } }; runMain();