Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Guillaume DEWISME
CI
Commits
0de29dc9
Commit
0de29dc9
authored
Mar 19, 2025
by
timothe 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
err fixed
parent
7690a9ca
Pipeline
#3112
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
deploy.js
scripts/deploy.js
+3
-3
No files found.
scripts/deploy.js
View file @
0de29dc9
// Script de déploiement du contrat Voting
// Script de déploiement du contrat Voting
const
hre
=
require
(
"hardhat"
);
const
{
ethers
}
=
require
(
"hardhat"
);
async
function
main
()
{
async
function
main
()
{
console
.
log
(
"Déploiement du contrat Voting..."
);
console
.
log
(
"Déploiement du contrat Voting..."
);
// Récupération du compte de déploiement
// Récupération du compte de déploiement
const
[
deployer
]
=
await
hre
.
ethers
.
getSigners
();
const
[
deployer
]
=
await
ethers
.
getSigners
();
console
.
log
(
"Déploiement avec le compte:"
,
deployer
.
address
);
console
.
log
(
"Déploiement avec le compte:"
,
deployer
.
address
);
// Compilation du contrat
// Compilation du contrat
const
Voting
=
await
hre
.
ethers
.
getContractFactory
(
"Voting"
);
const
Voting
=
await
ethers
.
getContractFactory
(
"Voting"
);
// Déploiement du contrat
// Déploiement du contrat
const
voting
=
await
Voting
.
deploy
();
const
voting
=
await
Voting
.
deploy
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment