Тестовый коммит после удаления husky

This commit is contained in:
2025-03-05 01:02:09 +03:00
parent 97ca5e4b64
commit 3157ad0cd9
118 changed files with 8177 additions and 8530 deletions

View File

@@ -1,18 +1,18 @@
const hre = require("hardhat");
const hre = require('hardhat');
async function main() {
const AccessToken = await hre.ethers.getContractFactory("AccessToken");
const AccessToken = await hre.ethers.getContractFactory('AccessToken');
const accessToken = await AccessToken.deploy();
await accessToken.waitForDeployment();
const address = await accessToken.getAddress();
console.log("AccessToken deployed to:", address);
console.log('AccessToken deployed to:', address);
// Создаем первый админский токен для владельца контракта
const [owner] = await hre.ethers.getSigners();
const tx = await accessToken.mintAccessToken(owner.address, 0); // 0 = ADMIN
await tx.wait();
console.log("Admin token minted for:", owner.address);
console.log('Admin token minted for:', owner.address);
}
main()
@@ -20,4 +20,4 @@ main()
.catch((error) => {
console.error(error);
process.exit(1);
});
});